gpio: Fix error checking in the function device_pca957x_init