diff mbox series

[-next] scsi: ufs: Fix platform_no_drv_owner.cocci warnings

Message ID 1542072377-1249-1-git-send-email-yuehaibing@huawei.com (mailing list archive)
State Accepted
Headers show
Series [-next] scsi: ufs: Fix platform_no_drv_owner.cocci warnings | expand

Commit Message

Yue Haibing Nov. 13, 2018, 1:26 a.m. UTC
Remove .owner field if calls are used which set it automatically
Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
---
 drivers/scsi/ufs/cdns-pltfrm.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Martin K. Petersen Dec. 13, 2018, 2:38 a.m. UTC | #1
YueHaibing,

> Remove .owner field if calls are used which set it automatically
> Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci

Applied to 4.21/scsi-queue.
diff mbox series

Patch

diff --git a/drivers/scsi/ufs/cdns-pltfrm.c b/drivers/scsi/ufs/cdns-pltfrm.c
index 8bcf863..4a37b4f 100644
--- a/drivers/scsi/ufs/cdns-pltfrm.c
+++ b/drivers/scsi/ufs/cdns-pltfrm.c
@@ -135,7 +135,6 @@  static int cdns_ufs_pltfrm_remove(struct platform_device *pdev)
 	.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,
 	},