gpio: pch: allow use from device tree
authorPaul Burton <paul.burton@imgtec.com>
Mon, 30 Nov 2015 16:21:38 +0000 (16:21 +0000)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 10 Dec 2015 16:24:40 +0000 (17:24 +0100)
commit1cfadea8f395e3fb6a15ea548e3e86c8b6d64f98
tree2baf7ea4e4c51dbbc13883d45302989f21dca128
parentdfaf19de59cab02177d94ee3b0b8c0e243016f3f
gpio: pch: allow use from device tree

Allow GPIOs from the gpio-pch driver to be referenced from device tree
by simply setting the struct gpio_chip of_node pointer to that of the
struct pci_dev.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-pch.c