]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: mvsdio: use slot-gpio for card detect gpio
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 16 Jan 2013 13:13:58 +0000 (14:13 +0100)
committerChris Ball <cjb@laptop.org>
Mon, 11 Feb 2013 18:28:53 +0000 (13:28 -0500)
commit39103e728881afaac7f1eca9a57b0caa7426f8de
treee661a4a38d2993094016c5b1c9b061c43c8a95ef
parent4a9630b65229c02532a3f27a6809ce7512d0e69d
mmc: mvsdio: use slot-gpio for card detect gpio

The MMC core subsystem provides in drivers/mmc/core/slot-gpio.c a nice
set of helper functions to simplify the management of the card detect
GPIO in MMC host drivers. This patch migrates the mvsdio driver to
using those helpers, which will make the ->probe() code simpler, and
therefore ease the process of adding a Device Tree binding for this
driver.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Tested-by: Stefan Peter <s.peter@mpl.ch>
Tested-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/mvsdio.c