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)
commit5c2aee90acc78d273d96a5f3126537257757fef7
tree9b8ad4eafc47c349741f057a8dba0e30ea0030a1
parent7a24db90aa7543999d7f3b72dd580c40f137be91
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