Skip to contentSkip to conversation

mmc: sdhci-brcmstb: Delete owner assignment

PATCH Applied SF Markus Elfring 3 participants 3 messages Aug 15, 2016 – Aug 22, 2016

Subsystems (5)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mmc: sdhci-brcmstb: Delete owner assignment

From: Markus Elfring <[email protected]>
Date: Mon, 15 Aug 2016 07:32:45 +0200

The field "owner" is set by core. Thus delete an extra initialisation.

Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci

---
 drivers/mmc/host/sdhci-brcmstb.c | 1 -
 1 file changed, 1 deletion(-)
drivers/mmc/host/sdhci-brcmstb.c +0 -1
index cce10fe..609ba5b 100644
@@ -128,7 +128,6 @@ MODULE_DEVICE_TABLE(of, sdhci_brcm_of_match);
 static struct platform_driver sdhci_brcmstb_driver = {
 	.driver		= {
 		.name	= "sdhci-brcmstb",
-		.owner	= THIS_MODULE,
 		.pm	= &sdhci_brcmstb_pmops,
 		.of_match_table = of_match_ptr(sdhci_brcm_of_match),
 	},
Signature · 1 line
2.9.2
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 6 lines · SF Markus Elfring

From: Markus Elfring <[email protected]>
Date: Mon, 15 Aug 2016 07:32:45 +0200

The field "owner" is set by core. Thus delete an extra initialisation.

Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci

Could insert a blank line here

Quoted 1 line

Otherwise:

Quoted 17 lines
---
 drivers/mmc/host/sdhci-brcmstb.c | 1 -
 1 file changed, 1 deletion(-)
drivers/mmc/host/sdhci-brcmstb.c +0 -1
index cce10fe..609ba5b 100644
@@ -128,7 +128,6 @@ MODULE_DEVICE_TABLE(of, sdhci_brcm_of_match);
 static struct platform_driver sdhci_brcmstb_driver = {
 	.driver		= {
 		.name	= "sdhci-brcmstb",
-		.owner	= THIS_MODULE,
 		.pm	= &sdhci_brcmstb_pmops,
 		.of_match_table = of_match_ptr(sdhci_brcm_of_match),
 	},
Applied
#2 lore raw
In reply to SF Markus Elfring
Quoted 7 lines · SF Markus Elfring

From: Markus Elfring <[email protected]>
Date: Mon, 15 Aug 2016 07:32:45 +0200

The field "owner" is set by core. Thus delete an extra initialisation.

Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci

Thanks, applied for next! Inserted a blank line above according to Adrian's comment.

Kind regards
Uffe

Quoted 19 lines
---
 drivers/mmc/host/sdhci-brcmstb.c | 1 -
 1 file changed, 1 deletion(-)
drivers/mmc/host/sdhci-brcmstb.c +0 -2
index cce10fe..609ba5b 100644
@@ -128,7 +128,6 @@ MODULE_DEVICE_TABLE(of, sdhci_brcm_of_match);
 static struct platform_driver sdhci_brcmstb_driver = {
        .driver         = {
                .name   = "sdhci-brcmstb",
-               .owner  = THIS_MODULE,
                .pm     = &sdhci_brcmstb_pmops,
                .of_match_table = of_match_ptr(sdhci_brcm_of_match),
        },
--

2.9.2