Skip to content

Commit

Permalink
PCMCIA: sa1111: pass along sa1111_pcmcia_configure_socket() failure code
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Russell King committed Feb 21, 2012
1 parent 1c3d038 commit 65c77dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/pcmcia/sa1100_badge4.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ badge4_pcmcia_configure_socket(struct soc_pcmcia_socket *skt, const socket_state
local_irq_restore(flags);
}

return 0;
return ret;
}

static struct pcmcia_low_level badge4_pcmcia_ops = {
Expand Down
2 changes: 1 addition & 1 deletion drivers/pcmcia/sa1100_neponset.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ neponset_pcmcia_configure_socket(struct soc_pcmcia_socket *skt, const socket_sta
sa1111_set_io(s->dev, pa_dwr_mask, pa_dwr_set);
}

return 0;
return ret;
}

static struct pcmcia_low_level neponset_pcmcia_ops = {
Expand Down

0 comments on commit 65c77dc

Please sign in to comment.