[PATCH] usb: phy: bcm-ns-usb3: fix platform_no_drv_owner.cocci warnings

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

 



drivers/usb/phy/phy-bcm-ns-usb3.c:249: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: Rafał Miłecki <zajec5@xxxxxxxxx>
Signed-off-by: Fengguang Wu <fengguang.wu@xxxxxxxxx>
---

 phy-bcm-ns-usb3.c |    1 -
 1 file changed, 1 deletion(-)

--- a/drivers/usb/phy/phy-bcm-ns-usb3.c
+++ b/drivers/usb/phy/phy-bcm-ns-usb3.c
@@ -246,7 +246,6 @@ static struct platform_driver bcm_ns_usb
 	.probe		= bcm_ns_usb3_probe,
 	.remove		= bcm_ns_usb3_remove,
 	.driver = {
-		.owner = THIS_MODULE,
 		.name = "bcm_ns_usb3",
 		.of_match_table = bcm_ns_usb3_id_table,
 	},
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux