PCI: layerscape: fix platform_no_drv_owner.cocci warnings
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
Signed-off-by Julia Lawall <[email protected]>
---
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_matchstatic struct platform_driver ls_pcie_driver = { .driver = { .name ="layerscape-pcie" , - .owner =THIS_MODULE , .of_match_table = ls_pcie_of_match, }, };
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.cocciSigned-off-by Julia Lawall <[email protected]>
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_matchstatic struct platform_driver ls_pcie_driver = { .driver = { .name ="layerscape-pcie" , - .owner =THIS_MODULE , .of_match_table = ls_pcie_of_match, }, };