staging: mt7621-pci: Remove redundant owner assignment
authorChristian Lütke-Stetzkamp <christian@lkamp.de>
Wed, 18 Apr 2018 16:40:11 +0000 (18:40 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 23 Apr 2018 13:37:12 +0000 (15:37 +0200)
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>
drivers/staging/mt7621-pci/pci-mt7621.c

index 6023215..c49442c 100644 (file)
@@ -832,7 +832,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),
        },
 };