[PATCH 4.18 230/235] gpiolib: Respect error code of ->get_direction()