summaryrefslogtreecommitdiffstats
path: root/drivers/pcmcia/sa11xx_base.c
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@samba.org>2005-08-02 13:51:36 +0200
committerLinus Torvalds <torvalds@g5.osdl.org>2005-08-02 17:28:48 +0200
commitf7d1d23c301e0ce82c801f3b5800be6341752a1f (patch)
tree12095ed260df39f8ee870f38d108d90519feb32f /drivers/pcmcia/sa11xx_base.c
parentLinux v2.6.13-rc5 (diff)
downloadlinux-f7d1d23c301e0ce82c801f3b5800be6341752a1f.tar.xz
linux-f7d1d23c301e0ce82c801f3b5800be6341752a1f.zip
[PATCH] Obvious bugfix for yenta resource allocation
Recent changes (well, dating from 12 July) have broken cardbus on my powerbook: I get 3 messages saying "no resource of type xxx available, trying to continue", and if I plug in my wireless card, it complains that there are no resources allocated to the card. This all worked in 2.6.12. Looking at the code in yenta_socket.c, function yenta_allocate_res, it's obvious what is wrong: if we get to line 639 (i.e. there wasn't a usable preassigned resource), we will always flow through to line 668, which is the printk that I was seeing, even if a resource was successfully allocated. It looks to me as though there should be a return statement after the two config_writel's in each of the 3 branches of the if statements, so that the function returns after successfully setting up the resource. The patch below adds these return statements, and with this patch, cardbus works on my powerbook once again. Signed-off-by: Paul Mackerras <paulus@samba.org> Acked-by: Dominik Brodowski <linux@dominikbrodowski.net> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/pcmcia/sa11xx_base.c')
0 files changed, 0 insertions, 0 deletions