[PATCH 6.12 114/154] gpiolib: check the return value of gpio_chip::get_direction()