pinctrl: baytrail: Register GPIO chip after chip->to_irq is set
authorJin Yao <yao.jin@intel.com>
Thu, 15 May 2014 15:28:47 +0000 (18:28 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 22 May 2014 22:01:53 +0000 (00:01 +0200)
commit605a7bca7cf39cbfa835022e9c29b6a4bb980281
treed064996664d6dd79e65a9898ea4d6b5cc5d1b126
parent20482d3279226d2d2802647ffa3ce82e511b74d7
pinctrl: baytrail: Register GPIO chip after chip->to_irq is set

If chip->to_irq is NULL ACPI GPIO helpers don't register GPIO event
handlers thus preventing any ACPI GPIO triggered events. Solve this by
calling gpiochip_add() after we have set up drivers chip->to_irq hook.

Signed-off-by: Jin Yao <yao.jin@intel.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-baytrail.c