diff options
author | Magnus Damm <damm@opensource.se> | 2011-01-12 05:43:07 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2011-01-13 01:22:04 -0500 |
commit | ceb50f33d478ca42baf72257381a923c797b418b (patch) | |
tree | ad417c904c890ef0584ae82939f69afba4b6f8e5 /arch/arm/mach-shmobile/board-mackerel.c | |
parent | 53582c4c508a95ece9f7c907edef9911c7eb79eb (diff) |
ARM: mach-shmobile: Kill off unused !gpio_is_valid() case
The Card Detect GPIOs used on AP4EVB and Mackerel are
alwayws valid, so kill off the unused !gpio_is_valid()
case.
Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/arm/mach-shmobile/board-mackerel.c')
-rw-r--r-- | arch/arm/mach-shmobile/board-mackerel.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/arm/mach-shmobile/board-mackerel.c b/arch/arm/mach-shmobile/board-mackerel.c index ad7e14aba164..7b15d21f0f68 100644 --- a/arch/arm/mach-shmobile/board-mackerel.c +++ b/arch/arm/mach-shmobile/board-mackerel.c | |||
@@ -657,10 +657,7 @@ static struct platform_device fsi_ak4643_device = { | |||
657 | */ | 657 | */ |
658 | static int slot_cn7_get_cd(struct platform_device *pdev) | 658 | static int slot_cn7_get_cd(struct platform_device *pdev) |
659 | { | 659 | { |
660 | if (gpio_is_valid(GPIO_PORT41)) | 660 | return !gpio_get_value(GPIO_PORT41); |
661 | return !gpio_get_value(GPIO_PORT41); | ||
662 | else | ||
663 | return -ENXIO; | ||
664 | } | 661 | } |
665 | 662 | ||
666 | /* SDHI0 */ | 663 | /* SDHI0 */ |