diff options
Diffstat (limited to 'drivers/pinctrl/mvebu/dove.c')
-rw-r--r-- | drivers/pinctrl/mvebu/dove.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/drivers/pinctrl/mvebu/dove.c b/drivers/pinctrl/mvebu/dove.c index e02501d744..964ce22ef8 100644 --- a/drivers/pinctrl/mvebu/dove.c +++ b/drivers/pinctrl/mvebu/dove.c @@ -1,12 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Marvell Dove pinctrl driver based on mvebu pinctrl core * * Author: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> - * - * 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. */ #include <common.h> @@ -693,12 +689,13 @@ static struct of_device_id dove_pinctrl_of_match[] = { }, { } }; +MODULE_DEVICE_TABLE(of, dove_pinctrl_of_match); -static int dove_pinctrl_probe(struct device_d *dev) +static int dove_pinctrl_probe(struct device *dev) { struct resource *iores; const struct of_device_id *match = - of_match_node(dove_pinctrl_of_match, dev->device_node); + of_match_node(dove_pinctrl_of_match, dev->of_node); struct mvebu_pinctrl_soc_info *soc = (struct mvebu_pinctrl_soc_info *)match->data; struct device_node *np; @@ -732,7 +729,7 @@ static int dove_pinctrl_probe(struct device_d *dev) return mvebu_pinctrl_probe(dev, soc); } -static struct driver_d dove_pinctrl_driver = { +static struct driver dove_pinctrl_driver = { .name = "pinctrl-dove", .probe = dove_pinctrl_probe, .of_compatible = dove_pinctrl_of_match, |