mmc: mvsdio: use slot-gpio infrastructure for write protect gpio
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 16 Jan 2013 13:13:57 +0000 (14:13 +0100)
committerChris Ball <cjb@laptop.org>
Mon, 28 Jan 2013 11:51:38 +0000 (06:51 -0500)
commit9d8b28e5d09746a0fea5aeec63b78586795e82de
treeda629b094319463e3a8f065c0339aa5a82f8930d
parent290d934172fd751c26f357a93836d54273f835b1
mmc: mvsdio: use slot-gpio infrastructure for write protect 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 write
protect 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