]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mmc: host: sdhci-s3c: Use devm_gpio_request to request GPIOs
authorTomasz Figa <t.figa@samsung.com>
Sun, 25 Nov 2012 20:40:44 +0000 (15:40 -0500)
committerChris Ball <cjb@laptop.org>
Tue, 4 Dec 2012 18:43:04 +0000 (13:43 -0500)
commit30f4b05558b2507379f2139d4eec179e52aa8a3f
tree91a31f28b465f5a170fe0a58932d08528347a864
parent7110a97c7146cccfa9558c1f6723d052b2382f90
mmc: host: sdhci-s3c: Use devm_gpio_request to request GPIOs

The set of GPIO pins used by sdhci-s3c driver varies between
configurations, such as card detect method, pinctrl availability, etc.
This overly complicates the code requesting and freeing GPIO pins, which
must check which pins are used, when freeing them.

This patch modifies the sdhci-s3c driver to use devm_gpio_request to
free requested pins automatically after unbinding the driver.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
Acked-by: Thomas Abraham <thomas.abraham@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/sdhci-s3c.c