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 |
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 --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, },
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(-)