From: Christian Lütke-Stetzkamp Date: Wed, 18 Apr 2018 17:37:32 +0000 (+0200) Subject: staging: mt7621-spi: Remove redundant owner assignment X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=45afe28c617bf240e40a6ed683e35bbcb878cd82;p=linux.git staging: mt7621-spi: Remove redundant owner assignment 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/mt7621-spi/spi-mt7621.c b/drivers/staging/mt7621-spi/spi-mt7621.c index d95e0b32f1f05..d9b55d2059b00 100644 --- a/drivers/staging/mt7621-spi/spi-mt7621.c +++ b/drivers/staging/mt7621-spi/spi-mt7621.c @@ -475,7 +475,6 @@ MODULE_ALIAS("platform:" DRIVER_NAME); static struct platform_driver mt7621_spi_driver = { .driver = { .name = DRIVER_NAME, - .owner = THIS_MODULE, .of_match_table = mt7621_spi_match, }, .probe = mt7621_spi_probe,