diff mbox

[2/8] input: gpio_keys_polled: return -EINVAL if wakeup specified

Message ID 1291142663-1011-3-git-send-email-juhosg@openwrt.org (mailing list archive)
State New, archived
Headers show

Commit Message

Gabor Juhos Nov. 30, 2010, 6:44 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/input/keyboard/gpio_keys_polled.c b/drivers/input/keyboard/gpio_keys_polled.c
index 1bd335b..5275c9e 100644
--- a/drivers/input/keyboard/gpio_keys_polled.c
+++ b/drivers/input/keyboard/gpio_keys_polled.c
@@ -157,6 +157,7 @@  static int __devinit gpio_keys_polled_probe(struct platform_device *pdev)
 
 		if (button->wakeup) {
 			dev_err(dev, DRV_NAME " does not support wakeup\n");
+			error = -EINVAL;
 			goto err_free_gpio;
 		}