gpio-button-hotplug: fix crash on remove
authorJonas Gorski <jogo@openwrt.org>
Tue, 17 Dec 2013 19:05:03 +0000 (19:05 +0000)
committerJonas Gorski <jogo@openwrt.org>
Tue, 17 Dec 2013 19:05:03 +0000 (19:05 +0000)
commite0b3c0caf934f29d592666f3a9cc8b3966463f10
treed2244f15334cdf8a4e3f8c4432f7e8ac5fa76eba
parent9ac94c2817e9b3a8d9b4e6a5bfee99aa62055651
gpio-button-hotplug: fix crash on remove

Don't call gpio_keys_remove recursively. Setting the platform
data to NULL triggered an oops on the second iteration, so there was
no infinate loop.

Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 39124
package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c