]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mmc: mmc_spi: Remove platform data .get_cd() and .get_ro() callbacks
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Thu, 8 Aug 2013 10:38:38 +0000 (12:38 +0200)
committerChris Ball <cjb@laptop.org>
Sun, 25 Aug 2013 03:58:06 +0000 (23:58 -0400)
All platforms now pass the CD and RO GPIOs to the MMC SPI driver, those
callbacks are not used anymore. Remove them.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/mmc_spi.c
include/linux/spi/mmc_spi.h

index 62fb82d7c942faf7909b2b1184e6587c708f1286..0a87e56913411a9abab46c99b13053abee3d96af 100644 (file)
@@ -1273,31 +1273,11 @@ static void mmc_spi_set_ios(struct mmc_host *mmc, struct mmc_ios *ios)
        }
 }
 
-static int mmc_spi_get_ro(struct mmc_host *mmc)
-{
-       struct mmc_spi_host *host = mmc_priv(mmc);
-
-       if (host->pdata && host->pdata->get_ro)
-               return !!host->pdata->get_ro(mmc->parent);
-       else
-               return mmc_gpio_get_ro(mmc);
-}
-
-static int mmc_spi_get_cd(struct mmc_host *mmc)
-{
-       struct mmc_spi_host *host = mmc_priv(mmc);
-
-       if (host->pdata && host->pdata->get_cd)
-               return !!host->pdata->get_cd(mmc->parent);
-       else
-               return mmc_gpio_get_cd(mmc);
-}
-
 static const struct mmc_host_ops mmc_spi_ops = {
        .request        = mmc_spi_request,
        .set_ios        = mmc_spi_set_ios,
-       .get_ro         = mmc_spi_get_ro,
-       .get_cd         = mmc_spi_get_cd,
+       .get_ro         = mmc_gpio_get_ro,
+       .get_cd         = mmc_gpio_get_cd,
 };
 
 
index 87cdb35bedda4dce63a878f5c1fa348167e841c7..274bc0fa00af6e2662f47f7d14b5f25c7649dbd8 100644 (file)
@@ -26,15 +26,6 @@ struct mmc_spi_platform_data {
                void *);
        void (*exit)(struct device *, void *);
 
-       /* sense switch on sd cards */
-       int (*get_ro)(struct device *);
-
-       /*
-        * If board does not use CD interrupts, driver can optimize polling
-        * using this function.
-        */
-       int (*get_cd)(struct device *);
-
        /*
         * Card Detect and Read Only GPIOs. To enable debouncing on the card
         * detect GPIO, set the cd_debounce to the debounce time in