diff options
-rw-r--r-- | drivers/gpio/gpio-generic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-generic.c b/drivers/gpio/gpio-generic.c index 713085267a..3066b3f7a1 100644 --- a/drivers/gpio/gpio-generic.c +++ b/drivers/gpio/gpio-generic.c @@ -537,7 +537,7 @@ static int bgpio_dev_probe(struct device_d *dev) if (IS_ERR(pdata)) return PTR_ERR(pdata); - r = dev_request_mem_resource_by_name(dev, "dat"); + r = dev_get_resource_by_name(dev, IORESOURCE_MEM, "dat"); if (!r) return -EINVAL; |