gpio-button-hotplug: handle EPROBE_DEFER and other errors
authorhauke <hauke@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 26 Jul 2015 15:52:17 +0000 (15:52 +0000)
committerhauke <hauke@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 26 Jul 2015 15:52:17 +0000 (15:52 +0000)
commit5de19ebe1d6d59cd0ff36213c84fd9758ae63da7
tree4de5917084a433dd644966acee9288430351ca33
parentdd7749ffa1b87262b268a64b241a5a5a93f0dab9
gpio-button-hotplug: handle EPROBE_DEFER and other errors

of_get_gpio_flags() could return an error like EPROBE_DEFER which was
not handled before. This patch takes the code from gpio_keys_polled.c
for error handling and also improves some other unrelated small parts.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46502 3c298f89-4303-0410-b956-a3cf2f4a3e73
package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c