summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-74xx-mmio.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpio/gpio-74xx-mmio.c')
-rw-r--r--drivers/gpio/gpio-74xx-mmio.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpio/gpio-74xx-mmio.c b/drivers/gpio/gpio-74xx-mmio.c
index 5b688f4766..513d071c79 100644
--- a/drivers/gpio/gpio-74xx-mmio.c
+++ b/drivers/gpio/gpio-74xx-mmio.c
@@ -81,6 +81,7 @@ static const struct of_device_id mmio_74xx_gpio_ids[] = {
},
{ }
};
+MODULE_DEVICE_TABLE(of, mmio_74xx_gpio_ids);
static inline
struct mmio_74xx_gpio_priv *to_mmio_74xx_gpio_priv(struct gpio_chip *gc)
@@ -120,7 +121,7 @@ static int mmio_74xx_dir_out(struct gpio_chip *gc, unsigned int gpio, int val)
return -ENOTSUPP;
}
-static int mmio_74xx_gpio_probe(struct device_d *dev)
+static int mmio_74xx_gpio_probe(struct device *dev)
{
struct mmio_74xx_gpio_priv *priv;
void __iomem *dat;
@@ -152,7 +153,7 @@ static int mmio_74xx_gpio_probe(struct device_d *dev)
return gpiochip_add(gc);
}
-static struct driver_d mmio_74xx_gpio_driver = {
+static struct driver mmio_74xx_gpio_driver = {
.name = "74xx-mmio-gpio",
.of_compatible = DRV_OF_COMPAT(mmio_74xx_gpio_ids),
.probe = mmio_74xx_gpio_probe,