diff options
Diffstat (limited to 'drivers/gpio/gpio-raspberrypi-exp.c')
-rw-r--r-- | drivers/gpio/gpio-raspberrypi-exp.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/gpio/gpio-raspberrypi-exp.c b/drivers/gpio/gpio-raspberrypi-exp.c index b68f19bfd0..a021253489 100644 --- a/drivers/gpio/gpio-raspberrypi-exp.c +++ b/drivers/gpio/gpio-raspberrypi-exp.c @@ -11,7 +11,7 @@ #include <common.h> #include <gpio.h> #include <init.h> -#include <mach/mbox.h> +#include <mach/bcm283x/mbox.h> #define NUM_GPIO 8 @@ -233,7 +233,7 @@ static struct gpio_ops rpi_exp_gpio_ops = { .set = rpi_exp_gpio_set, }; -static int rpi_exp_gpio_probe(struct device_d *dev) +static int rpi_exp_gpio_probe(struct device *dev) { struct rpi_exp_gpio *rpi_gpio; int ret; @@ -262,8 +262,9 @@ static __maybe_unused struct of_device_id rpi_exp_gpio_ids[] = { /* sentinel */ }, }; +MODULE_DEVICE_TABLE(of, rpi_exp_gpio_ids); -static struct driver_d rpi_exp_gpio_driver = { +static struct driver rpi_exp_gpio_driver = { .name = "rpi-exp-gpio", .probe = rpi_exp_gpio_probe, .of_compatible = DRV_OF_COMPAT(rpi_exp_gpio_ids), |