9
0
Fork 0

input: gpio-keys; dt probing needs CONFIG_OF_GPIO

Otherwise of_get_named_gpio_flags is not available.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2014-03-29 06:38:44 +01:00
parent c167c8079b
commit 258772deab
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ static int gpio_keys_probe_dt(struct gpio_keys *gk, struct device_d *dev)
struct device_node *npkey, *np = dev->device_node;
int i = 0, ret;
if (!IS_ENABLED(CONFIG_OFDEVICE))
if (!IS_ENABLED(CONFIG_OFDEVICE) || !IS_ENABLED(CONFIG_OF_GPIO))
return -ENODEV;
gk->nbuttons = of_get_child_count(np);