mmc: slot-gpio: use devm_* managed functions to ease users
authorShawn Guo <shawn.guo@linaro.org>
Tue, 11 Dec 2012 14:32:18 +0000 (22:32 +0800)
committerChris Ball <cjb@laptop.org>
Mon, 11 Feb 2013 17:51:23 +0000 (12:51 -0500)
commitd65b5ae8dabf48d8e7811a5319ec581e41b04d62
tree327c78f03aaa1ea5b580908ef61ae01c3701ec0c
parent505a8680b78f580245cfb83f37971c7b62bcf991
mmc: slot-gpio: use devm_* managed functions to ease users

Use devm_* managed functions, so that slot-gpio users do not have to
call mmc_gpio_free_ro/cd to free up resources requested in
mmc_gpio_request_ro/cd.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Acked-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/core/slot-gpio.c