]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: slot-gpio: Fix missing assignment to ctx->ro_gpio
authorChris Ball <cjb@laptop.org>
Mon, 10 Sep 2012 02:56:48 +0000 (22:56 -0400)
committerChris Ball <cjb@laptop.org>
Tue, 11 Sep 2012 14:55:20 +0000 (10:55 -0400)
commitf9d265d2b6672d58dcee76886f45781f014b5922
treee6136461d4d1bce995796a3518fe2eef08568964
parent84f452cb16d4798185ba2d42bb06159639369f59
mmc: slot-gpio: Fix missing assignment to ctx->ro_gpio

mmc_gpio_request_ro() doesn't store the requested gpio in ctx->ro_gpio.
As a result, subsequent calls to mmc_gpio_get_ro() will always fail
with -ENOSYS because the gpio number isn't available to that function.

Cc: stable <stable@vger.kernel.org>
Acked-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/core/slot-gpio.c