Skip to contentSkip to conversation

PCI: layerscape: fix platform_no_drv_owner.cocci warnings

PATCH Applied Julia Lawall 2 participants 2 messages Nov 18, 2014 – Dec 9, 2014 PCI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PCI: layerscape: fix platform_no_drv_owner.cocci warnings

No need to set .owner here. The core will do it.

Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci

---

 pci-layerscape.c |    1 -
 1 file changed, 1 deletion(-)
drivers/pci/host/pci-layerscape.c +0 -1
@@ -167,7 +167,6 @@ MODULE_DEVICE_TABLE(of, ls_pcie_of_match
 static struct platform_driver ls_pcie_driver = {
 	.driver = {
 		.name = "layerscape-pcie",
-		.owner = THIS_MODULE,
 		.of_match_table = ls_pcie_of_match,
 	},
 };
maintainer Applied
#1 lore raw
Quoted 5 lines · Julia Lawall

No need to set .owner here. The core will do it.

Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci

Applied to next-pci/host-layerscape for v3.19, thanks. This branch will be rebased to v3.19-rc1 when it comes out.

Quoted 15 lines

---

 pci-layerscape.c |    1 -
 1 file changed, 1 deletion(-)
drivers/pci/host/pci-layerscape.c +0 -1
@@ -167,7 +167,6 @@ MODULE_DEVICE_TABLE(of, ls_pcie_of_match
 static struct platform_driver ls_pcie_driver = {
 	.driver = {
 		.name = "layerscape-pcie",
-		.owner = THIS_MODULE,
 		.of_match_table = ls_pcie_of_match,
 	},
 };