Message ID | 3c1b59654d0cb56680662eae33db0eff3add546c.1290631852.git.bengardiner@nanometrics.ca (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/drivers/input/misc/gpio_buttons.c b/drivers/input/misc/gpio_buttons.c index c34e978..0859b4d 100644 --- a/drivers/input/misc/gpio_buttons.c +++ b/drivers/input/misc/gpio_buttons.c @@ -136,6 +136,11 @@ static int __devinit gpio_buttons_probe(struct platform_device *pdev) unsigned int gpio = button->gpio; unsigned int type = button->type ?: EV_KEY; + if (button->wakeup) { + dev_err(dev, DRV_NAME " does not support wakeup\n"); + goto err_free_gpio; + } + error = gpio_request(gpio, button->desc ? button->desc : DRV_NAME); if (error) {