gpio: of: move chip->of_gpio_n_cells checking to of_gpiochip_add()