Commit ceb50f33 authored by Magnus Damm's avatar Magnus Damm Committed by Paul Mundt

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: default avatarMagnus Damm <damm@opensource.se>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 53582c4c
...@@ -247,10 +247,7 @@ static struct platform_device smc911x_device = { ...@@ -247,10 +247,7 @@ static struct platform_device smc911x_device = {
*/ */
static int slot_cn7_get_cd(struct platform_device *pdev) static int slot_cn7_get_cd(struct platform_device *pdev)
{ {
if (gpio_is_valid(GPIO_PORT41)) return !gpio_get_value(GPIO_PORT41);
return !gpio_get_value(GPIO_PORT41);
else
return -ENXIO;
} }
/* SH_MMCIF */ /* SH_MMCIF */
......
...@@ -657,10 +657,7 @@ static struct platform_device fsi_ak4643_device = { ...@@ -657,10 +657,7 @@ static struct platform_device fsi_ak4643_device = {
*/ */
static int slot_cn7_get_cd(struct platform_device *pdev) static int slot_cn7_get_cd(struct platform_device *pdev)
{ {
if (gpio_is_valid(GPIO_PORT41)) return !gpio_get_value(GPIO_PORT41);
return !gpio_get_value(GPIO_PORT41);
else
return -ENXIO;
} }
/* SDHI0 */ /* SDHI0 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment