From: Javier Martinez Canillas Date: Mon, 14 Sep 2015 12:00:35 +0000 (+0200) Subject: mmc: pwrseq: use gpiod_get() instead of index 0 X-Git-Tag: KARO-TX6UL-2015-11-03~74^2~66 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a30b55119d086d33bd6046dfdd4723c810fd2579;p=karo-tx-linux.git mmc: pwrseq: use gpiod_get() instead of index 0 The gpiod_get() function expands to gpiod_get_index() with index 0 so it's better to use it since is easier to read and more concise. Signed-off-by: Javier Martinez Canillas Signed-off-by: Ulf Hansson --- diff --git a/drivers/mmc/core/pwrseq_emmc.c b/drivers/mmc/core/pwrseq_emmc.c index 9d6d2fb21796..137c97fb7aa8 100644 --- a/drivers/mmc/core/pwrseq_emmc.c +++ b/drivers/mmc/core/pwrseq_emmc.c @@ -76,7 +76,7 @@ struct mmc_pwrseq *mmc_pwrseq_emmc_alloc(struct mmc_host *host, if (!pwrseq) return ERR_PTR(-ENOMEM); - pwrseq->reset_gpio = gpiod_get_index(dev, "reset", 0, GPIOD_OUT_LOW); + pwrseq->reset_gpio = gpiod_get(dev, "reset", GPIOD_OUT_LOW); if (IS_ERR(pwrseq->reset_gpio)) { ret = PTR_ERR(pwrseq->reset_gpio); goto free;