summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-shmobile/board-ap4evb.c
diff options
context:
space:
mode:
authorMagnus Damm2011-01-12 11:43:07 +0100
committerPaul Mundt2011-01-13 07:22:04 +0100
commitceb50f33d478ca42baf72257381a923c797b418b (patch)
treead417c904c890ef0584ae82939f69afba4b6f8e5 /arch/arm/mach-shmobile/board-ap4evb.c
parentMerge branch 'rmobile/sdio' into rmobile-latest (diff)
downloadkernel-qcow2-linux-ceb50f33d478ca42baf72257381a923c797b418b.tar.gz
kernel-qcow2-linux-ceb50f33d478ca42baf72257381a923c797b418b.tar.xz
kernel-qcow2-linux-ceb50f33d478ca42baf72257381a923c797b418b.zip
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-ap4evb.c')
-rw-r--r--arch/arm/mach-shmobile/board-ap4evb.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/arm/mach-shmobile/board-ap4evb.c b/arch/arm/mach-shmobile/board-ap4evb.c
index f888d9d1d010..712e43318286 100644
--- a/arch/arm/mach-shmobile/board-ap4evb.c
+++ b/arch/arm/mach-shmobile/board-ap4evb.c
@@ -247,10 +247,7 @@ static struct platform_device smc911x_device = {
*/
static int slot_cn7_get_cd(struct platform_device *pdev)
{
- if (gpio_is_valid(GPIO_PORT41))
- return !gpio_get_value(GPIO_PORT41);
- else
- return -ENXIO;
+ return !gpio_get_value(GPIO_PORT41);
}
/* SH_MMCIF */