diff options
Diffstat (limited to 'drivers/gpio/gpio-latch.c')
-rw-r--r-- | drivers/gpio/gpio-latch.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/gpio/gpio-latch.c b/drivers/gpio/gpio-latch.c index 2a89f22401..9a1a87250e 100644 --- a/drivers/gpio/gpio-latch.c +++ b/drivers/gpio/gpio-latch.c @@ -94,11 +94,11 @@ static struct gpio_ops gpio_latch_gpio_ops = { .get_direction = gpio_latch_get_direction, }; -static int gpio_latch_probe(struct device_d *dev) +static int gpio_latch_probe(struct device *dev) { struct gpio_latch_priv *priv; int n_latches, i, ret; - struct device_node *np = dev->device_node; + struct device_node *np = dev->of_node; enum of_gpio_flags flags; priv = xzalloc(sizeof(*priv)); @@ -182,8 +182,9 @@ static const struct of_device_id gpio_latch_ids[] = { /* sentinel */ } }; +MODULE_DEVICE_TABLE(of, gpio_latch_ids); -static struct driver_d gpio_latch_driver = { +static struct driver gpio_latch_driver = { .name = "gpio-latch", .probe = gpio_latch_probe, .of_compatible = DRV_OF_COMPAT(gpio_latch_ids), |