diff options
Diffstat (limited to 'drivers/gpio/gpio-starfive-vic.c')
-rw-r--r-- | drivers/gpio/gpio-starfive-vic.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/gpio/gpio-starfive-vic.c b/drivers/gpio/gpio-starfive-vic.c index baa4f584d5..399219a3a0 100644 --- a/drivers/gpio/gpio-starfive-vic.c +++ b/drivers/gpio/gpio-starfive-vic.c @@ -1,4 +1,4 @@ -// SPDX-License-Identifier: GPL-2.0 +// SPDX-License-Identifier: GPL-2.0-only /* * COPYRIGHT 2020 Shanghai StarFive Technology Co., Ltd. */ @@ -6,7 +6,7 @@ #include <linux/basic_mmio_gpio.h> #include <linux/reset.h> #include <linux/clk.h> -#include <printk.h> +#include <linux/printk.h> #include <driver.h> #include <errno.h> #include <pinctrl.h> @@ -111,7 +111,7 @@ static struct gpio_ops starfive_gpio_ops = { .set = starfive_set_value, }; -static int starfive_gpio_probe(struct device_d *dev) +static int starfive_gpio_probe(struct device *dev) { struct starfive_gpio *chip; struct resource *res; @@ -164,8 +164,9 @@ static const struct of_device_id starfive_gpio_match[] = { { .compatible = "starfive,gpio0", }, { }, }; +MODULE_DEVICE_TABLE(of, starfive_gpio_match); -static struct driver_d starfive_gpio_driver = { +static struct driver starfive_gpio_driver = { .probe = starfive_gpio_probe, .name = "starfive_gpio", .of_compatible = starfive_gpio_match, |