summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2011-12-07 13:03:19 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2011-12-07 13:03:19 +0100
commit249a1ba06eb1ae4eedcf043ad1c3086110204f67 (patch)
tree538114537efd12fe5703805b4846d4859d25a0a0
parent0ee6847f7b6d396d3756f6ecd0781a00b9cca980 (diff)
downloadbarebox-249a1ba06eb1ae4eedcf043ad1c3086110204f67.tar.gz
barebox-249a1ba06eb1ae4eedcf043ad1c3086110204f67.tar.xz
mci s3c: remove unused code
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r--drivers/mci/s3c.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/drivers/mci/s3c.c b/drivers/mci/s3c.c
index f97e13a6dd..89c8168fd6 100644
--- a/drivers/mci/s3c.c
+++ b/drivers/mci/s3c.c
@@ -176,32 +176,6 @@ static void s3c_finish_request(struct device_d *hw_dev)
/* TODO ensure the engines are stopped */
}
-/* TODO GPIO feature is required for this architecture */
-static unsigned gpio_get_value(unsigned val)
-{
- return 0;
-}
-
-/**
- * Detect if a card is plugged in
- * @param hw_dev Host interface instance
- * @return 0 if a card is plugged in
- *
- * Note: If there is no GPIO registered to detect if a card is present, we
- * assume a card _is_ present.
- */
-static int s3c_mci_card_present(struct device_d *hw_dev)
-{
- struct s3c_mci_platform_data *pd = GET_HOST_PDATA(hw_dev);
- int ret;
-
- if (pd->gpio_detect == 0)
- return 0; /* assume the card is present */
-
- ret = gpio_get_value(pd->gpio_detect) ? 0 : 1;
- return ret ^ pd->detect_invert;
-}
-
/**
* Setup a new clock frequency on this MCI bus
* @param hw_dev Host interface instance