]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mmc: sdhci: Remove ->platform_init() callback as it's no longer used
authorUlf Hansson <ulf.hansson@linaro.org>
Tue, 30 Aug 2016 07:23:12 +0000 (09:23 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 26 Sep 2016 19:31:16 +0000 (21:31 +0200)
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>
drivers/mmc/host/sdhci-pltfm.c
drivers/mmc/host/sdhci.h

index 1d17dcfc3ffb59913f0f59ae5a880dbd9e0947d6..ad49bfaf5bf8d0f81ab306df5155d49a91a008ca 100644 (file)
@@ -156,13 +156,6 @@ struct sdhci_host *sdhci_pltfm_init(struct platform_device *pdev,
                host->quirks2 = pdata->quirks2;
        }
 
-       /*
-        * Some platforms need to probe the controller to be able to
-        * determine which caps should be used.
-        */
-       if (host->ops && host->ops->platform_init)
-               host->ops->platform_init(host);
-
        platform_set_drvdata(pdev, host);
 
        return host;
index 0411c9f364619a5949e999fc4b1b9288504bfcfc..a2bc9e111a3ab176f00ad4e2638b088a4200d3ca 100644 (file)
@@ -555,7 +555,6 @@ struct sdhci_ops {
        void    (*set_uhs_signaling)(struct sdhci_host *host, unsigned int uhs);
        void    (*hw_reset)(struct sdhci_host *host);
        void    (*adma_workaround)(struct sdhci_host *host, u32 intmask);
-       void    (*platform_init)(struct sdhci_host *host);
        void    (*card_event)(struct sdhci_host *host);
        void    (*voltage_switch)(struct sdhci_host *host);
        int     (*select_drive_strength)(struct sdhci_host *host,