Quellcode durchsuchen

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 <[email protected]>

SVN-Revision: 39124
Jonas Gorski vor 12 Jahren
Ursprung
Commit
5c2aee90ac
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1 1
      package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c

+ 1 - 1
package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c

@@ -612,7 +612,7 @@ static int gpio_keys_remove(struct platform_device *pdev)
 	if (bdev->polled)
 		gpio_keys_polled_close(bdev);
 
-	return gpio_keys_remove(pdev);
+	return 0;
 }
 
 static struct platform_driver gpio_keys_driver = {