Skip to contentSkip to conversation

mmc: sdhci-of-at91: fix platform_no_drv_owner.cocci warnings

PATCH Ulf Hansson 1 participant 1 message Aug 25, 2015 2 messages not in the archive MMC, SD and SDIO

lore
Share & tools
lore

Ulf Hansson

author Applied
#2 lore raw
In reply to a message not in the archive

+linux-mmc

Quoted 8 lines · kbuild test robot

drivers/mmc/host/sdhci-of-at91.c:180: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

Thanks, applied for next!

Kind regards
Uffe

Quoted 15 lines

---

 sdhci-of-at91.c |    1 -
 1 file changed, 1 deletion(-)
drivers/mmc/host/sdhci-of-at91.c +0 -1
@@ -177,7 +177,6 @@ static int sdhci_at91_remove(struct plat
 static struct platform_driver sdhci_at91_driver = {
        .driver         = {
                .name   = "sdhci-at91",
-               .owner  = THIS_MODULE,
                .of_match_table = sdhci_at91_dt_match,
                .pm     = SDHCI_PLTFM_PMOPS,
        },