gpio: of: move chip->of_gpio_n_cells checking to of_gpiochip_add()
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 14 Jun 2016 10:07:05 +0000 (19:07 +0900)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 23 Jun 2016 09:07:11 +0000 (11:07 +0200)
commit1020dfd15b2363bf652851c490a27a550070346e
treeb88e6f4fc70825e95c495318f7767f79710ae1d3
parentbe715343011b80a8da71ff978b50981984f037b9
gpio: of: move chip->of_gpio_n_cells checking to of_gpiochip_add()

Do this sanity check only once when the gpio_chip is added
rather than every time gpio-hog is handled.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib-of.c