diff mbox series

[LEDE-DEV,2/5] staging: mt7621-pci: Remove redundant owner assignment

Message ID 1526155068-17740-2-git-send-email-rosenp@gmail.com
State Accepted
Delegated to: John Crispin
Headers show
Series None | expand

Commit Message

Rosen Penev May 12, 2018, 7:57 p.m. UTC
From: Christian Lütke-Stetzkamp <christian@lkamp.de>

Remove the owner assignment form the platform driver as
platform_driver_register() already initializes the owner.
Found using coccinelle.

Signed-off-by: Christian Lütke-Stetzkamp <christian@lkamp.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
 target/linux/ramips/files-4.14/arch/mips/pci/pci-mt7621.c | 1 -
 1 file changed, 1 deletion(-)
diff mbox series

Patch

diff --git a/target/linux/ramips/files-4.14/arch/mips/pci/pci-mt7621.c b/target/linux/ramips/files-4.14/arch/mips/pci/pci-mt7621.c
index 5125412..4209e23 100644
--- a/target/linux/ramips/files-4.14/arch/mips/pci/pci-mt7621.c
+++ b/target/linux/ramips/files-4.14/arch/mips/pci/pci-mt7621.c
@@ -823,7 +823,6 @@  static struct platform_driver mt7621_pci_driver = {
 	.probe = mt7621_pci_probe,
 	.driver = {
 		.name = "mt7621-pci",
-		.owner = THIS_MODULE,
 		.of_match_table = of_match_ptr(mt7621_pci_ids),
 	},
 };