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

Rosen Penev rosenp at gmail.com
Wed May 16 17:42:27 PDT 2018


From: Christian Lütke-Stetzkamp <christian at 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 at lkamp.de>
Signed-off-by: Greg Kroah-Hartman <gregkh at linuxfoundation.org>
---
 .../ramips/patches-4.14/0043-spi-add-mt7621-support.patch      | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

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,
-- 
2.17.0




More information about the Lede-dev mailing list