diff options
Diffstat (limited to 'drivers/gpio/gpio-raspberrypi-exp.c')
-rw-r--r-- | drivers/gpio/gpio-raspberrypi-exp.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/gpio/gpio-raspberrypi-exp.c b/drivers/gpio/gpio-raspberrypi-exp.c index 0713e3ca5f..a021253489 100644 --- a/drivers/gpio/gpio-raspberrypi-exp.c +++ b/drivers/gpio/gpio-raspberrypi-exp.c @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0+ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Raspberry Pi 3 expander GPIO driver * @@ -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), |