diff mbox series

[LEDE-DEV,3/4] staging: mt7621-spi: Remove redundant owner assignment

Message ID 20180517004228.30766-3-rosenp@gmail.com
State Rejected
Delegated to: John Crispin
Headers show
Series [LEDE-DEV,1/4] staging: mt7621-gpio: remove redundant owner assignments of drivers | expand

Commit Message

Rosen Penev May 17, 2018, 12:42 a.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>
---
 .../ramips/patches-4.14/0043-spi-add-mt7621-support.patch      | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/target/linux/ramips/patches-4.14/0043-spi-add-mt7621-support.patch b/target/linux/ramips/patches-4.14/0043-spi-add-mt7621-support.patch
index f59e52a5b9..1d9e650812 100644
--- a/target/linux/ramips/patches-4.14/0043-spi-add-mt7621-support.patch
+++ b/target/linux/ramips/patches-4.14/0043-spi-add-mt7621-support.patch
@@ -44,7 +44,7 @@  Index: linux-4.14.37/drivers/spi/spi-mt7621.c
 ===================================================================
 --- /dev/null
 +++ linux-4.14.37/drivers/spi/spi-mt7621.c
-@@ -0,0 +1,494 @@
+@@ -0,0 +1,493 @@
 +/*
 + * spi-mt7621.c -- MediaTek MT7621 SPI controller driver
 + *
@@ -527,7 +527,6 @@  Index: linux-4.14.37/drivers/spi/spi-mt7621.c
 +static struct platform_driver mt7621_spi_driver = {
 +	.driver = {
 +		.name = DRIVER_NAME,
-+		.owner = THIS_MODULE,
 +		.of_match_table = mt7621_spi_match,
 +	},
 +	.probe = mt7621_spi_probe,