diff mbox

spi: lantiq-ssc: fix platform_no_drv_owner.cocci warnings

Message ID 20170219173310.GA64236@lkp-hsx03.lkp.intel.com (mailing list archive)
State Accepted
Commit a5b0443c9bf42173f0847889d880a45de67e0f8f
Headers show

Commit Message

Fengguang Wu Feb. 19, 2017, 5:33 p.m. UTC
drivers/spi/spi-lantiq-ssc.c:973:3-8: No need to set .owner here. The core will do it.

 Remove .owner field if calls are used which set it automatically

Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci

CC: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---

 spi-lantiq-ssc.c |    1 -
 1 file changed, 1 deletion(-)

--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

Hauke Mehrtens Feb. 19, 2017, 10:58 p.m. UTC | #1
On 02/19/2017 06:33 PM, kbuild test robot wrote:
> drivers/spi/spi-lantiq-ssc.c:973:3-8: No need to set .owner here. The core will do it.
> 
>  Remove .owner field if calls are used which set it automatically
> 
> Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci
> 
> CC: Hauke Mehrtens <hauke@hauke-m.de>
> Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>

Acked-by: Hauke Mehrtens <hauke@hauke-m.de>

> ---
> 
>  spi-lantiq-ssc.c |    1 -
>  1 file changed, 1 deletion(-)
> 
> --- a/drivers/spi/spi-lantiq-ssc.c
> +++ b/drivers/spi/spi-lantiq-ssc.c
> @@ -970,7 +970,6 @@ static struct platform_driver lantiq_ssc
>  	.remove = lantiq_ssc_remove,
>  	.driver = {
>  		.name = "spi-lantiq-ssc",
> -		.owner = THIS_MODULE,
>  		.of_match_table = lantiq_ssc_match,
>  	},
>  };
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

--- a/drivers/spi/spi-lantiq-ssc.c
+++ b/drivers/spi/spi-lantiq-ssc.c
@@ -970,7 +970,6 @@  static struct platform_driver lantiq_ssc
 	.remove = lantiq_ssc_remove,
 	.driver = {
 		.name = "spi-lantiq-ssc",
-		.owner = THIS_MODULE,
 		.of_match_table = lantiq_ssc_match,
 	},
 };