diff options
Diffstat (limited to 'drivers/pinctrl/mvebu')
-rw-r--r-- | drivers/pinctrl/mvebu/Makefile | 1 | ||||
-rw-r--r-- | drivers/pinctrl/mvebu/armada-370.c | 13 | ||||
-rw-r--r-- | drivers/pinctrl/mvebu/armada-xp.c | 13 | ||||
-rw-r--r-- | drivers/pinctrl/mvebu/common.c | 11 | ||||
-rw-r--r-- | drivers/pinctrl/mvebu/common.h | 8 | ||||
-rw-r--r-- | drivers/pinctrl/mvebu/dove.c | 13 | ||||
-rw-r--r-- | drivers/pinctrl/mvebu/kirkwood.c | 13 |
7 files changed, 26 insertions, 46 deletions
diff --git a/drivers/pinctrl/mvebu/Makefile b/drivers/pinctrl/mvebu/Makefile index 6255a5f56d..c90b7fabb8 100644 --- a/drivers/pinctrl/mvebu/Makefile +++ b/drivers/pinctrl/mvebu/Makefile @@ -1,3 +1,4 @@ +# SPDX-License-Identifier: GPL-2.0-only obj-y += common.o obj-$(CONFIG_ARCH_ARMADA_370) += armada-370.o obj-$(CONFIG_ARCH_ARMADA_XP) += armada-xp.o diff --git a/drivers/pinctrl/mvebu/armada-370.c b/drivers/pinctrl/mvebu/armada-370.c index 24ad7f5860..116adb2a70 100644 --- a/drivers/pinctrl/mvebu/armada-370.c +++ b/drivers/pinctrl/mvebu/armada-370.c @@ -1,14 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Marvell Armada 370 pinctrl driver based on mvebu pinctrl core * * Copyright (C) 2012 Marvell * * Thomas Petazzoni <thomas.petazzoni@free-electrons.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> @@ -388,12 +384,13 @@ static struct of_device_id armada_370_pinctrl_of_match[] = { }, { }, }; +MODULE_DEVICE_TABLE(of, armada_370_pinctrl_of_match); -static int armada_370_pinctrl_probe(struct device_d *dev) +static int armada_370_pinctrl_probe(struct device *dev) { struct resource *iores; const struct of_device_id *match = - of_match_node(armada_370_pinctrl_of_match, dev->device_node); + of_match_node(armada_370_pinctrl_of_match, dev->of_node); struct mvebu_pinctrl_soc_info *soc = (struct mvebu_pinctrl_soc_info *)match->data; @@ -405,7 +402,7 @@ static int armada_370_pinctrl_probe(struct device_d *dev) return mvebu_pinctrl_probe(dev, soc); } -static struct driver_d armada_370_pinctrl_driver = { +static struct driver armada_370_pinctrl_driver = { .name = "pinctrl-armada-370", .probe = armada_370_pinctrl_probe, .of_compatible = armada_370_pinctrl_of_match, diff --git a/drivers/pinctrl/mvebu/armada-xp.c b/drivers/pinctrl/mvebu/armada-xp.c index 25faabdf05..3a4b0504c8 100644 --- a/drivers/pinctrl/mvebu/armada-xp.c +++ b/drivers/pinctrl/mvebu/armada-xp.c @@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Marvell Armada XP pinctrl driver based on mvebu pinctrl core * @@ -5,11 +6,6 @@ * * Thomas Petazzoni <thomas.petazzoni@free-electrons.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. - * * This file supports the three variants of Armada XP SoCs that are * available: mv78230, mv78260 and mv78460. From a pin muxing * perspective, the mv78230 has 49 MPP pins. The mv78260 and mv78460 @@ -370,12 +366,13 @@ static struct of_device_id armada_xp_pinctrl_of_match[] = { { .compatible = "marvell,mv78460-pinctrl", .data = (void *)V_MV78460, }, { }, }; +MODULE_DEVICE_TABLE(of, armada_xp_pinctrl_of_match); -static int armada_xp_pinctrl_probe(struct device_d *dev) +static int armada_xp_pinctrl_probe(struct device *dev) { struct resource *iores; const struct of_device_id *match = - of_match_node(armada_xp_pinctrl_of_match, dev->device_node); + of_match_node(armada_xp_pinctrl_of_match, dev->of_node); struct mvebu_pinctrl_soc_info *soc = &armada_xp_pinctrl_info; iores = dev_request_mem_resource(dev, 0); @@ -395,7 +392,7 @@ static int armada_xp_pinctrl_probe(struct device_d *dev) return mvebu_pinctrl_probe(dev, soc); } -static struct driver_d armada_xp_pinctrl_driver = { +static struct driver armada_xp_pinctrl_driver = { .name = "pinctrl-armada-xp", .probe = armada_xp_pinctrl_probe, .of_compatible = armada_xp_pinctrl_of_match, diff --git a/drivers/pinctrl/mvebu/common.c b/drivers/pinctrl/mvebu/common.c index ae16b39268..e41ab0a40d 100644 --- a/drivers/pinctrl/mvebu/common.c +++ b/drivers/pinctrl/mvebu/common.c @@ -1,12 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Marvell MVEBU pinctrl core driver * * 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> @@ -61,8 +57,7 @@ static int mvebu_pinctrl_set_state(struct pinctrl_device *pdev, ret = of_property_read_string(np, "marvell,function", &function); if (ret) { - dev_err(pdev->dev, "missing marvell,function in node %s\n", - np->full_name); + dev_err(pdev->dev, "missing marvell,function in node %pOF\n", np); return -EINVAL; } @@ -97,7 +92,7 @@ static struct pinctrl_ops mvebu_pinctrl_ops = { .set_state = mvebu_pinctrl_set_state, }; -int mvebu_pinctrl_probe(struct device_d *dev, +int mvebu_pinctrl_probe(struct device *dev, struct mvebu_pinctrl_soc_info *soc) { struct mvebu_pinctrl *pctl; diff --git a/drivers/pinctrl/mvebu/common.h b/drivers/pinctrl/mvebu/common.h index 8b3c74852d..203b0530d8 100644 --- a/drivers/pinctrl/mvebu/common.h +++ b/drivers/pinctrl/mvebu/common.h @@ -1,13 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Marvell MVEBU pinctrl driver * * Authors: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> * Thomas Petazzoni <thomas.petazzoni@free-electrons.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. */ #ifndef __PINCTRL_MVEBU_H__ @@ -140,7 +136,7 @@ static inline int default_mpp_ctrl_set(void __iomem *base, unsigned int pid, return 0; } -int mvebu_pinctrl_probe(struct device_d *dev, +int mvebu_pinctrl_probe(struct device *dev, struct mvebu_pinctrl_soc_info *soc); #endif 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, diff --git a/drivers/pinctrl/mvebu/kirkwood.c b/drivers/pinctrl/mvebu/kirkwood.c index 91bef76270..6c9e63575e 100644 --- a/drivers/pinctrl/mvebu/kirkwood.c +++ b/drivers/pinctrl/mvebu/kirkwood.c @@ -1,12 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Marvell Kirkwood pinctrl driver based on mvebu pinctrl core * * 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> @@ -429,12 +425,13 @@ static struct of_device_id kirkwood_pinctrl_of_match[] = { }, { } }; +MODULE_DEVICE_TABLE(of, kirkwood_pinctrl_of_match); -static int kirkwood_pinctrl_probe(struct device_d *dev) +static int kirkwood_pinctrl_probe(struct device *dev) { struct resource *iores; const struct of_device_id *match = - of_match_node(kirkwood_pinctrl_of_match, dev->device_node); + of_match_node(kirkwood_pinctrl_of_match, dev->of_node); struct mvebu_pinctrl_soc_info *soc = (struct mvebu_pinctrl_soc_info *)match->data; @@ -446,7 +443,7 @@ static int kirkwood_pinctrl_probe(struct device_d *dev) return mvebu_pinctrl_probe(dev, soc); } -static struct driver_d kirkwood_pinctrl_driver = { +static struct driver kirkwood_pinctrl_driver = { .name = "pinctrl-kirkwood", .probe = kirkwood_pinctrl_probe, .of_compatible = kirkwood_pinctrl_of_match, |