Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mmc: sdhci: Remove ->platform_init() callback as it's no longer used

The commit 1ef5e49e46b9 ("mmc: sdhci-of-esdhc: add/remove some quirks
according to vendor version") moved sdhci-of-esdhc away from using the
->platform_init() callback.

As it was the only user of it and that it seems reasonable to believe that
it won't be needed again, let's just remove it.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>

-8
-7
drivers/mmc/host/sdhci-pltfm.c
··· 156 156 host->quirks2 = pdata->quirks2; 157 157 } 158 158 159 - /* 160 - * Some platforms need to probe the controller to be able to 161 - * determine which caps should be used. 162 - */ 163 - if (host->ops && host->ops->platform_init) 164 - host->ops->platform_init(host); 165 - 166 159 platform_set_drvdata(pdev, host); 167 160 168 161 return host;
-1
drivers/mmc/host/sdhci.h
··· 555 555 void (*set_uhs_signaling)(struct sdhci_host *host, unsigned int uhs); 556 556 void (*hw_reset)(struct sdhci_host *host); 557 557 void (*adma_workaround)(struct sdhci_host *host, u32 intmask); 558 - void (*platform_init)(struct sdhci_host *host); 559 558 void (*card_event)(struct sdhci_host *host); 560 559 void (*voltage_switch)(struct sdhci_host *host); 561 560 int (*select_drive_strength)(struct sdhci_host *host,