[PATCH] scsi: ufs: fix platform_no_drv_owner.cocci warnings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: kbuild test robot <fengguang.wu@xxxxxxxxx>

drivers/scsi/ufs/cdns-pltfrm.c:138: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

Fixes: d90996dae8e4 ("scsi: ufs: Add UFS platform driver for Cadence UFS")
CC: Janek Kotas <jank@xxxxxxxxxxx>
Signed-off-by: kbuild test robot <fengguang.wu@xxxxxxxxx>
---

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git queue
head:   399b6c8bc9f705c8fc718ddeb1671f88174da051
commit: d90996dae8e48e042bd9fbfc11c73504a19a6e68 [54/101] scsi: ufs: Add UFS platform driver for Cadence UFS

 cdns-pltfrm.c |    1 -
 1 file changed, 1 deletion(-)

--- a/drivers/scsi/ufs/cdns-pltfrm.c
+++ b/drivers/scsi/ufs/cdns-pltfrm.c
@@ -135,7 +135,6 @@ static struct platform_driver cdns_ufs_p
 	.remove	= cdns_ufs_pltfrm_remove,
 	.driver	= {
 		.name   = "cdns-ufshcd",
-		.owner  = THIS_MODULE,
 		.pm     = &cdns_ufs_dev_pm_ops,
 		.of_match_table = cdns_ufs_of_match,
 	},



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux