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, 28 Jan 2013 11:51:31 +0000 (06:51 -0500)
commitc8bdfea7c3e60c99ce7cc3459d8acfa0ce8854e3
tree259d48eef9266c67e93e682fae78de600c82b63d
parent96272c84393330341f3778ace53c8ab4cbd8ddfd
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