mmc: mvsdio: Remove redundant use of mmc_gpio_free_cd|ro()
authorUlf Hansson <ulf.hansson@linaro.org>
Thu, 18 Dec 2014 14:44:30 +0000 (15:44 +0100)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 19 Jan 2015 08:56:15 +0000 (09:56 +0100)
The MMC core makes use of the devm_* functions while requesting the
CD/WP GPIOs, let's rely on that.

Cc: Nicolas Pitre <nico@fluxnic.net>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/mvsdio.c

index 4f8618f4522df2db6e08c4680dd0f08e75e8d7dd..b6ec91fb2fd58256ebfac9cdbfdee7cfbbfc53b5 100644 (file)
@@ -828,8 +828,6 @@ static int mvsd_probe(struct platform_device *pdev)
 
 out:
        if (mmc) {
-               mmc_gpio_free_cd(mmc);
-               mmc_gpio_free_ro(mmc);
                if (!IS_ERR(host->clk))
                        clk_disable_unprepare(host->clk);
                mmc_free_host(mmc);
@@ -844,8 +842,6 @@ static int mvsd_remove(struct platform_device *pdev)
 
        struct mvsd_host *host = mmc_priv(mmc);
 
-       mmc_gpio_free_cd(mmc);
-       mmc_gpio_free_ro(mmc);
        mmc_remove_host(mmc);
        del_timer_sync(&host->timer);
        mvsd_power_down(host);