aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pcmcia
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2012-01-16 04:27:33 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2012-02-21 09:27:04 -0500
commit65c77dcaa4d175194588cc829ccf0f1709f257c5 (patch)
tree14445c7bb2dcc69282074a36b358cd371232d86c /drivers/pcmcia
parent1c3d038bd5fb9dc868bb7474caaddc7aea4d562e (diff)
PCMCIA: sa1111: pass along sa1111_pcmcia_configure_socket() failure code
Pass along the sa1111_pcmcia_configure_socket() failure code to higher levels, rather than just returning zero. Acked-by: Dominik Brodowski <linux@dominikbrodowski.net> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'drivers/pcmcia')
-rw-r--r--drivers/pcmcia/sa1100_badge4.c2
-rw-r--r--drivers/pcmcia/sa1100_neponset.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pcmcia/sa1100_badge4.c b/drivers/pcmcia/sa1100_badge4.c
index ca97cb863896..4d206f4dd67b 100644
--- a/drivers/pcmcia/sa1100_badge4.c
+++ b/drivers/pcmcia/sa1100_badge4.c
@@ -122,7 +122,7 @@ badge4_pcmcia_configure_socket(struct soc_pcmcia_socket *skt, const socket_state
122 local_irq_restore(flags); 122 local_irq_restore(flags);
123 } 123 }
124 124
125 return 0; 125 return ret;
126} 126}
127 127
128static struct pcmcia_low_level badge4_pcmcia_ops = { 128static struct pcmcia_low_level badge4_pcmcia_ops = {
diff --git a/drivers/pcmcia/sa1100_neponset.c b/drivers/pcmcia/sa1100_neponset.c
index 1eac3fd60d73..50f297d850e7 100644
--- a/drivers/pcmcia/sa1100_neponset.c
+++ b/drivers/pcmcia/sa1100_neponset.c
@@ -103,7 +103,7 @@ neponset_pcmcia_configure_socket(struct soc_pcmcia_socket *skt, const socket_sta
103 sa1111_set_io(s->dev, pa_dwr_mask, pa_dwr_set); 103 sa1111_set_io(s->dev, pa_dwr_mask, pa_dwr_set);
104 } 104 }
105 105
106 return 0; 106 return ret;
107} 107}
108 108
109static struct pcmcia_low_level neponset_pcmcia_ops = { 109static struct pcmcia_low_level neponset_pcmcia_ops = {