]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: slot-gpio: call gpiod_to_irq() only when MMC_CAP_NEEDS_POLL is unset
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 8 Nov 2017 06:34:54 +0000 (15:34 +0900)
committerUlf Hansson <ulf.hansson@linaro.org>
Mon, 11 Dec 2017 11:44:28 +0000 (12:44 +0100)
commit54fbc70e6d8a4fa60e6f681e38653159b196c517
tree4745a4f3175d055fdca1c9664d73e47c1c4b0f29
parentea68337e28b82c07e8a30cf1ca577c275fb830c6
mmc: slot-gpio: call gpiod_to_irq() only when MMC_CAP_NEEDS_POLL is unset

It is not efficient to call gpiod_to_irq() regardless the flag, then
ignore the returned irq if MMC_CAP_NEEDS_POLL.

Move gpiod_to_irq() after the MMC_CAP_NEEDS_POLL check.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/core/slot-gpio.c