diff options
Diffstat (limited to 'drivers/gpio/gpio-ath79.c')
-rw-r--r-- | drivers/gpio/gpio-ath79.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/gpio/gpio-ath79.c b/drivers/gpio/gpio-ath79.c index 72f76c8a54..b32e9552ce 100644 --- a/drivers/gpio/gpio-ath79.c +++ b/drivers/gpio/gpio-ath79.c @@ -102,11 +102,12 @@ static const struct of_device_id ath79_gpio_of_match[] = { { .compatible = "qca,ar7100-gpio" }, {}, }; +MODULE_DEVICE_TABLE(of, ath79_gpio_of_match); -static int ath79_gpio_probe(struct device_d *dev) +static int ath79_gpio_probe(struct device *dev) { struct resource *iores; - struct device_node *np = dev->device_node; + struct device_node *np = dev->of_node; int err; if (!np) { @@ -143,7 +144,7 @@ static int ath79_gpio_probe(struct device_d *dev) return 0; } -static struct driver_d ath79_gpio_driver = { +static struct driver ath79_gpio_driver = { .name = "ath79-gpio", .probe = ath79_gpio_probe, .of_compatible = DRV_OF_COMPAT(ath79_gpio_of_match), |