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:
parent
c167c8079b
commit
258772deab
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue