[PATCH 4.14 156/173] gpiolib: Respect error code of ->get_direction()