[PATCH 6.7 149/162] gpiolib: Fix the error path order in gpiochip_add_data_with_key()