Commit 5c759d73 authored by Wolfram Sang's avatar Wolfram Sang

pinctrl: drop owner assignment from platform_drivers

A platform_driver does not need to set an owner, it will be populated by the
driver core.
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent 735fc3ec
...@@ -634,7 +634,6 @@ MODULE_DEVICE_TABLE(of, as3722_pinctrl_of_match); ...@@ -634,7 +634,6 @@ MODULE_DEVICE_TABLE(of, as3722_pinctrl_of_match);
static struct platform_driver as3722_pinctrl_driver = { static struct platform_driver as3722_pinctrl_driver = {
.driver = { .driver = {
.name = "as3722-pinctrl", .name = "as3722-pinctrl",
.owner = THIS_MODULE,
.of_match_table = as3722_pinctrl_of_match, .of_match_table = as3722_pinctrl_of_match,
}, },
.probe = as3722_pinctrl_probe, .probe = as3722_pinctrl_probe,
......
...@@ -1832,7 +1832,6 @@ static int at91_gpio_probe(struct platform_device *pdev) ...@@ -1832,7 +1832,6 @@ static int at91_gpio_probe(struct platform_device *pdev)
static struct platform_driver at91_gpio_driver = { static struct platform_driver at91_gpio_driver = {
.driver = { .driver = {
.name = "gpio-at91", .name = "gpio-at91",
.owner = THIS_MODULE,
.of_match_table = at91_gpio_of_match, .of_match_table = at91_gpio_of_match,
}, },
.probe = at91_gpio_probe, .probe = at91_gpio_probe,
...@@ -1841,7 +1840,6 @@ static struct platform_driver at91_gpio_driver = { ...@@ -1841,7 +1840,6 @@ static struct platform_driver at91_gpio_driver = {
static struct platform_driver at91_pinctrl_driver = { static struct platform_driver at91_pinctrl_driver = {
.driver = { .driver = {
.name = "pinctrl-at91", .name = "pinctrl-at91",
.owner = THIS_MODULE,
.of_match_table = at91_pinctrl_of_match, .of_match_table = at91_pinctrl_of_match,
}, },
.probe = at91_pinctrl_probe, .probe = at91_pinctrl_probe,
......
...@@ -602,7 +602,6 @@ static struct platform_driver byt_gpio_driver = { ...@@ -602,7 +602,6 @@ static struct platform_driver byt_gpio_driver = {
.remove = byt_gpio_remove, .remove = byt_gpio_remove,
.driver = { .driver = {
.name = "byt_gpio", .name = "byt_gpio",
.owner = THIS_MODULE,
.pm = &byt_gpio_pm_ops, .pm = &byt_gpio_pm_ops,
.acpi_match_table = ACPI_PTR(byt_gpio_acpi_match), .acpi_match_table = ACPI_PTR(byt_gpio_acpi_match),
}, },
......
...@@ -1448,7 +1448,6 @@ static struct of_device_id bcm281xx_pinctrl_of_match[] = { ...@@ -1448,7 +1448,6 @@ static struct of_device_id bcm281xx_pinctrl_of_match[] = {
static struct platform_driver bcm281xx_pinctrl_driver = { static struct platform_driver bcm281xx_pinctrl_driver = {
.driver = { .driver = {
.name = "bcm281xx-pinctrl", .name = "bcm281xx-pinctrl",
.owner = THIS_MODULE,
.of_match_table = bcm281xx_pinctrl_of_match, .of_match_table = bcm281xx_pinctrl_of_match,
}, },
}; };
......
...@@ -1062,7 +1062,6 @@ static struct platform_driver bcm2835_pinctrl_driver = { ...@@ -1062,7 +1062,6 @@ static struct platform_driver bcm2835_pinctrl_driver = {
.remove = bcm2835_pinctrl_remove, .remove = bcm2835_pinctrl_remove,
.driver = { .driver = {
.name = MODULE_NAME, .name = MODULE_NAME,
.owner = THIS_MODULE,
.of_match_table = bcm2835_pinctrl_match, .of_match_table = bcm2835_pinctrl_match,
}, },
}; };
......
...@@ -500,7 +500,6 @@ static struct platform_driver pinctrl_falcon_driver = { ...@@ -500,7 +500,6 @@ static struct platform_driver pinctrl_falcon_driver = {
.probe = pinctrl_falcon_probe, .probe = pinctrl_falcon_probe,
.driver = { .driver = {
.name = "pinctrl-falcon", .name = "pinctrl-falcon",
.owner = THIS_MODULE,
.of_match_table = falcon_match, .of_match_table = falcon_match,
}, },
}; };
......
...@@ -1062,7 +1062,6 @@ static int palmas_pinctrl_remove(struct platform_device *pdev) ...@@ -1062,7 +1062,6 @@ static int palmas_pinctrl_remove(struct platform_device *pdev)
static struct platform_driver palmas_pinctrl_driver = { static struct platform_driver palmas_pinctrl_driver = {
.driver = { .driver = {
.name = "palmas-pinctrl", .name = "palmas-pinctrl",
.owner = THIS_MODULE,
.of_match_table = palmas_pinctrl_of_match, .of_match_table = palmas_pinctrl_of_match,
}, },
.probe = palmas_pinctrl_probe, .probe = palmas_pinctrl_probe,
......
...@@ -1982,7 +1982,6 @@ static struct platform_driver rockchip_pinctrl_driver = { ...@@ -1982,7 +1982,6 @@ static struct platform_driver rockchip_pinctrl_driver = {
.probe = rockchip_pinctrl_probe, .probe = rockchip_pinctrl_probe,
.driver = { .driver = {
.name = "rockchip-pinctrl", .name = "rockchip-pinctrl",
.owner = THIS_MODULE,
.of_match_table = rockchip_pinctrl_dt_match, .of_match_table = rockchip_pinctrl_dt_match,
}, },
}; };
......
...@@ -2016,7 +2016,6 @@ static struct platform_driver pcs_driver = { ...@@ -2016,7 +2016,6 @@ static struct platform_driver pcs_driver = {
.probe = pcs_probe, .probe = pcs_probe,
.remove = pcs_remove, .remove = pcs_remove,
.driver = { .driver = {
.owner = THIS_MODULE,
.name = DRIVER_NAME, .name = DRIVER_NAME,
.of_match_table = pcs_of_match, .of_match_table = pcs_of_match,
}, },
......
...@@ -1689,7 +1689,6 @@ static int st_pctl_probe(struct platform_device *pdev) ...@@ -1689,7 +1689,6 @@ static int st_pctl_probe(struct platform_device *pdev)
static struct platform_driver st_pctl_driver = { static struct platform_driver st_pctl_driver = {
.driver = { .driver = {
.name = "st-pinctrl", .name = "st-pinctrl",
.owner = THIS_MODULE,
.of_match_table = st_pctl_of_match, .of_match_table = st_pctl_of_match,
}, },
.probe = st_pctl_probe, .probe = st_pctl_probe,
......
...@@ -847,7 +847,6 @@ static struct platform_driver tb10x_pinctrl_pdrv = { ...@@ -847,7 +847,6 @@ static struct platform_driver tb10x_pinctrl_pdrv = {
.driver = { .driver = {
.name = "tb10x_pinctrl", .name = "tb10x_pinctrl",
.of_match_table = of_match_ptr(tb10x_pinctrl_dt_ids), .of_match_table = of_match_ptr(tb10x_pinctrl_dt_ids),
.owner = THIS_MODULE
} }
}; };
......
...@@ -1859,7 +1859,6 @@ MODULE_DEVICE_TABLE(of, tegra114_pinctrl_of_match); ...@@ -1859,7 +1859,6 @@ MODULE_DEVICE_TABLE(of, tegra114_pinctrl_of_match);
static struct platform_driver tegra114_pinctrl_driver = { static struct platform_driver tegra114_pinctrl_driver = {
.driver = { .driver = {
.name = "tegra114-pinctrl", .name = "tegra114-pinctrl",
.owner = THIS_MODULE,
.of_match_table = tegra114_pinctrl_of_match, .of_match_table = tegra114_pinctrl_of_match,
}, },
.probe = tegra114_pinctrl_probe, .probe = tegra114_pinctrl_probe,
......
...@@ -2072,7 +2072,6 @@ MODULE_DEVICE_TABLE(of, tegra124_pinctrl_of_match); ...@@ -2072,7 +2072,6 @@ MODULE_DEVICE_TABLE(of, tegra124_pinctrl_of_match);
static struct platform_driver tegra124_pinctrl_driver = { static struct platform_driver tegra124_pinctrl_driver = {
.driver = { .driver = {
.name = "tegra124-pinctrl", .name = "tegra124-pinctrl",
.owner = THIS_MODULE,
.of_match_table = tegra124_pinctrl_of_match, .of_match_table = tegra124_pinctrl_of_match,
}, },
.probe = tegra124_pinctrl_probe, .probe = tegra124_pinctrl_probe,
......
...@@ -2236,7 +2236,6 @@ static const struct of_device_id tegra20_pinctrl_of_match[] = { ...@@ -2236,7 +2236,6 @@ static const struct of_device_id tegra20_pinctrl_of_match[] = {
static struct platform_driver tegra20_pinctrl_driver = { static struct platform_driver tegra20_pinctrl_driver = {
.driver = { .driver = {
.name = "tegra20-pinctrl", .name = "tegra20-pinctrl",
.owner = THIS_MODULE,
.of_match_table = tegra20_pinctrl_of_match, .of_match_table = tegra20_pinctrl_of_match,
}, },
.probe = tegra20_pinctrl_probe, .probe = tegra20_pinctrl_probe,
......
...@@ -2493,7 +2493,6 @@ MODULE_DEVICE_TABLE(of, tegra30_pinctrl_of_match); ...@@ -2493,7 +2493,6 @@ MODULE_DEVICE_TABLE(of, tegra30_pinctrl_of_match);
static struct platform_driver tegra30_pinctrl_driver = { static struct platform_driver tegra30_pinctrl_driver = {
.driver = { .driver = {
.name = "tegra30-pinctrl", .name = "tegra30-pinctrl",
.owner = THIS_MODULE,
.of_match_table = tegra30_pinctrl_of_match, .of_match_table = tegra30_pinctrl_of_match,
}, },
.probe = tegra30_pinctrl_probe, .probe = tegra30_pinctrl_probe,
......
...@@ -977,7 +977,6 @@ static struct of_device_id tz1090_pdc_pinctrl_of_match[] = { ...@@ -977,7 +977,6 @@ static struct of_device_id tz1090_pdc_pinctrl_of_match[] = {
static struct platform_driver tz1090_pdc_pinctrl_driver = { static struct platform_driver tz1090_pdc_pinctrl_driver = {
.driver = { .driver = {
.name = "tz1090-pdc-pinctrl", .name = "tz1090-pdc-pinctrl",
.owner = THIS_MODULE,
.of_match_table = tz1090_pdc_pinctrl_of_match, .of_match_table = tz1090_pdc_pinctrl_of_match,
}, },
.probe = tz1090_pdc_pinctrl_probe, .probe = tz1090_pdc_pinctrl_probe,
......
...@@ -1992,7 +1992,6 @@ static struct of_device_id tz1090_pinctrl_of_match[] = { ...@@ -1992,7 +1992,6 @@ static struct of_device_id tz1090_pinctrl_of_match[] = {
static struct platform_driver tz1090_pinctrl_driver = { static struct platform_driver tz1090_pinctrl_driver = {
.driver = { .driver = {
.name = "tz1090-pinctrl", .name = "tz1090-pinctrl",
.owner = THIS_MODULE,
.of_match_table = tz1090_pinctrl_of_match, .of_match_table = tz1090_pinctrl_of_match,
}, },
.probe = tz1090_pinctrl_probe, .probe = tz1090_pinctrl_probe,
......
...@@ -1098,7 +1098,6 @@ static const struct of_device_id u300_pinctrl_match[] = { ...@@ -1098,7 +1098,6 @@ static const struct of_device_id u300_pinctrl_match[] = {
static struct platform_driver u300_pmx_driver = { static struct platform_driver u300_pmx_driver = {
.driver = { .driver = {
.name = DRIVER_NAME, .name = DRIVER_NAME,
.owner = THIS_MODULE,
.of_match_table = u300_pinctrl_match, .of_match_table = u300_pinctrl_match,
}, },
.probe = u300_pmx_probe, .probe = u300_pmx_probe,
......
...@@ -840,7 +840,6 @@ static struct platform_driver pinmux_xway_driver = { ...@@ -840,7 +840,6 @@ static struct platform_driver pinmux_xway_driver = {
.probe = pinmux_xway_probe, .probe = pinmux_xway_probe,
.driver = { .driver = {
.name = "pinctrl-xway", .name = "pinctrl-xway",
.owner = THIS_MODULE,
.of_match_table = xway_match, .of_match_table = xway_match,
}, },
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment