]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: slot-gpio: Don't override con_id when request descriptor
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 2 Jan 2017 12:05:25 +0000 (14:05 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 13 Feb 2017 12:20:06 +0000 (13:20 +0100)
commitbc5d9cbda02280beb3988b53fa086ff1bd4676bf
treea527788e5c2b911dea292e792dfd7b828f9ee047
parentd6ed9fa4edad72467a4d2199d5fd8fece0b222b0
mmc: slot-gpio: Don't override con_id when request descriptor

The caller may supply connection ID, index, or both. All combinations are
possible and mmc framework should not make any assumption on what exactly
caller wants.

Remove con_id override conditionals in mmc_gpiod_request_ro() and
mmc_gpiod_request_cd().

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/slot-gpio.c