Skip to contentSkip to conversation

mailbox: no need to set .owner platform_driver_register

PATCH New Tian Tao 1 participant 1 message Oct 29, 2019 Mailbox API

lore
Share & tools
lore

Tian Tao

author
#0 lore raw

PATCH 1/1 mailbox: no need to set .owner platform_driver_register

the platform_driver_register will set the .owner to THIS_MODULE

---
 drivers/mailbox/hi6220-mailbox.c | 1 -
 1 file changed, 1 deletion(-)
drivers/mailbox/hi6220-mailbox.c +0 -1
index 8b9eb56..cc236ac 100644
@@ -354,7 +354,6 @@ static int hi6220_mbox_probe(struct platform_device *pdev)
 static struct platform_driver hi6220_mbox_driver = {
 	.driver = {
 		.name = "hi6220-mbox",
-		.owner = THIS_MODULE,
 		.of_match_table = hi6220_mbox_of_match,
 	},
 	.probe	= hi6220_mbox_probe,
Signature · 1 line
2.7.4