diff options
Diffstat (limited to 'drivers/pinctrl/pinctrl-bcm2835.c')
-rw-r--r-- | drivers/pinctrl/pinctrl-bcm2835.c | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/drivers/pinctrl/pinctrl-bcm2835.c b/drivers/pinctrl/pinctrl-bcm2835.c index 684ead2f8e..57c1aee3af 100644 --- a/drivers/pinctrl/pinctrl-bcm2835.c +++ b/drivers/pinctrl/pinctrl-bcm2835.c @@ -1,20 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Author: Carlo Caione <carlo@carlocaione.org> * * GPIO code based on linux/arch/arm/mach-bcm2708/bcm2708_gpio.c * * pinctrl part added by Tomaz Solc <tomaz.solc@tablix.org> - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License as - * published by the Free Software Foundation; either version 2 of - * the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * */ #include <common.h> @@ -151,7 +141,7 @@ static struct pinctrl_ops bcm2835_pinctrl_ops = { .set_state = bcm2835_pinctrl_set_state, }; -static int bcm2835_gpio_probe(struct device_d *dev) +static int bcm2835_gpio_probe(struct device *dev) { const struct plat_data *plat_data; struct resource *iores; @@ -218,8 +208,9 @@ static __maybe_unused struct of_device_id bcm2835_gpio_dt_ids[] = { /* sentinel */ } }; +MODULE_DEVICE_TABLE(of, bcm2835_gpio_dt_ids); -static struct driver_d bcm2835_gpio_driver = { +static struct driver bcm2835_gpio_driver = { .name = "bcm2835-gpio", .probe = bcm2835_gpio_probe, .of_compatible = DRV_OF_COMPAT(bcm2835_gpio_dt_ids), |