Commit e27a5130 authored by Wolfram Sang's avatar Wolfram Sang

pci: host: 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 2422f7e4
...@@ -446,7 +446,6 @@ static struct platform_driver dra7xx_pcie_driver = { ...@@ -446,7 +446,6 @@ static struct platform_driver dra7xx_pcie_driver = {
.remove = __exit_p(dra7xx_pcie_remove), .remove = __exit_p(dra7xx_pcie_remove),
.driver = { .driver = {
.name = "dra7-pcie", .name = "dra7-pcie",
.owner = THIS_MODULE,
.of_match_table = of_dra7xx_pcie_match, .of_match_table = of_dra7xx_pcie_match,
}, },
}; };
......
...@@ -649,7 +649,6 @@ static struct platform_driver exynos_pcie_driver = { ...@@ -649,7 +649,6 @@ static struct platform_driver exynos_pcie_driver = {
.remove = __exit_p(exynos_pcie_remove), .remove = __exit_p(exynos_pcie_remove),
.driver = { .driver = {
.name = "exynos-pcie", .name = "exynos-pcie",
.owner = THIS_MODULE,
.of_match_table = exynos_pcie_of_match, .of_match_table = exynos_pcie_of_match,
}, },
}; };
......
...@@ -376,7 +376,6 @@ static int gen_pci_probe(struct platform_device *pdev) ...@@ -376,7 +376,6 @@ static int gen_pci_probe(struct platform_device *pdev)
static struct platform_driver gen_pci_driver = { static struct platform_driver gen_pci_driver = {
.driver = { .driver = {
.name = "pci-host-generic", .name = "pci-host-generic",
.owner = THIS_MODULE,
.of_match_table = gen_pci_of_match, .of_match_table = gen_pci_of_match,
}, },
.probe = gen_pci_probe, .probe = gen_pci_probe,
......
...@@ -636,7 +636,6 @@ MODULE_DEVICE_TABLE(of, imx6_pcie_of_match); ...@@ -636,7 +636,6 @@ MODULE_DEVICE_TABLE(of, imx6_pcie_of_match);
static struct platform_driver imx6_pcie_driver = { static struct platform_driver imx6_pcie_driver = {
.driver = { .driver = {
.name = "imx6q-pcie", .name = "imx6q-pcie",
.owner = THIS_MODULE,
.of_match_table = imx6_pcie_of_match, .of_match_table = imx6_pcie_of_match,
}, },
.shutdown = imx6_pcie_shutdown, .shutdown = imx6_pcie_shutdown,
......
...@@ -403,7 +403,6 @@ static struct platform_driver ks_pcie_driver __refdata = { ...@@ -403,7 +403,6 @@ static struct platform_driver ks_pcie_driver __refdata = {
.remove = __exit_p(ks_pcie_remove), .remove = __exit_p(ks_pcie_remove),
.driver = { .driver = {
.name = "keystone-pcie", .name = "keystone-pcie",
.owner = THIS_MODULE,
.of_match_table = of_match_ptr(ks_pcie_of_match), .of_match_table = of_match_ptr(ks_pcie_of_match),
}, },
}; };
......
...@@ -1082,7 +1082,6 @@ MODULE_DEVICE_TABLE(of, mvebu_pcie_of_match_table); ...@@ -1082,7 +1082,6 @@ MODULE_DEVICE_TABLE(of, mvebu_pcie_of_match_table);
static struct platform_driver mvebu_pcie_driver = { static struct platform_driver mvebu_pcie_driver = {
.driver = { .driver = {
.owner = THIS_MODULE,
.name = "mvebu-pcie", .name = "mvebu-pcie",
.of_match_table = mvebu_pcie_of_match_table, .of_match_table = mvebu_pcie_of_match_table,
/* driver unloading/unbinding currently not supported */ /* driver unloading/unbinding currently not supported */
......
...@@ -412,7 +412,6 @@ MODULE_DEVICE_TABLE(of, rcar_pci_of_match); ...@@ -412,7 +412,6 @@ MODULE_DEVICE_TABLE(of, rcar_pci_of_match);
static struct platform_driver rcar_pci_driver = { static struct platform_driver rcar_pci_driver = {
.driver = { .driver = {
.name = "pci-rcar-gen2", .name = "pci-rcar-gen2",
.owner = THIS_MODULE,
.suppress_bind_attrs = true, .suppress_bind_attrs = true,
.of_match_table = rcar_pci_of_match, .of_match_table = rcar_pci_of_match,
}, },
......
...@@ -2122,7 +2122,6 @@ static int tegra_pcie_probe(struct platform_device *pdev) ...@@ -2122,7 +2122,6 @@ static int tegra_pcie_probe(struct platform_device *pdev)
static struct platform_driver tegra_pcie_driver = { static struct platform_driver tegra_pcie_driver = {
.driver = { .driver = {
.name = "tegra-pcie", .name = "tegra-pcie",
.owner = THIS_MODULE,
.of_match_table = tegra_pcie_of_match, .of_match_table = tegra_pcie_of_match,
.suppress_bind_attrs = true, .suppress_bind_attrs = true,
}, },
......
...@@ -647,7 +647,6 @@ static const struct of_device_id xgene_pcie_match_table[] = { ...@@ -647,7 +647,6 @@ static const struct of_device_id xgene_pcie_match_table[] = {
static struct platform_driver xgene_pcie_driver = { static struct platform_driver xgene_pcie_driver = {
.driver = { .driver = {
.name = "xgene-pcie", .name = "xgene-pcie",
.owner = THIS_MODULE,
.of_match_table = of_match_ptr(xgene_pcie_match_table), .of_match_table = of_match_ptr(xgene_pcie_match_table),
}, },
.probe = xgene_pcie_probe_bridge, .probe = xgene_pcie_probe_bridge,
......
...@@ -988,7 +988,6 @@ static int rcar_pcie_probe(struct platform_device *pdev) ...@@ -988,7 +988,6 @@ static int rcar_pcie_probe(struct platform_device *pdev)
static struct platform_driver rcar_pcie_driver = { static struct platform_driver rcar_pcie_driver = {
.driver = { .driver = {
.name = DRV_NAME, .name = DRV_NAME,
.owner = THIS_MODULE,
.of_match_table = rcar_pcie_of_match, .of_match_table = rcar_pcie_of_match,
.suppress_bind_attrs = true, .suppress_bind_attrs = true,
}, },
......
...@@ -375,7 +375,6 @@ static struct platform_driver spear13xx_pcie_driver __initdata = { ...@@ -375,7 +375,6 @@ static struct platform_driver spear13xx_pcie_driver __initdata = {
.probe = spear13xx_pcie_probe, .probe = spear13xx_pcie_probe,
.driver = { .driver = {
.name = "spear-pcie", .name = "spear-pcie",
.owner = THIS_MODULE,
.of_match_table = of_match_ptr(spear13xx_pcie_of_match), .of_match_table = of_match_ptr(spear13xx_pcie_of_match),
}, },
}; };
......
...@@ -956,7 +956,6 @@ static struct of_device_id xilinx_pcie_of_match[] = { ...@@ -956,7 +956,6 @@ static struct of_device_id xilinx_pcie_of_match[] = {
static struct platform_driver xilinx_pcie_driver = { static struct platform_driver xilinx_pcie_driver = {
.driver = { .driver = {
.name = "xilinx-pcie", .name = "xilinx-pcie",
.owner = THIS_MODULE,
.of_match_table = xilinx_pcie_of_match, .of_match_table = xilinx_pcie_of_match,
.suppress_bind_attrs = true, .suppress_bind_attrs = true,
}, },
......
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