From: Jiri Slaby Date: Fri, 8 Jun 2007 20:46:52 +0000 (-0700) Subject: Char: stallion, don't fail with less than max panels X-Git-Tag: v2.6.22-rc5~78 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=64834b226b237e654ab164d3af88ceaa65f10362;p=linux-2.6-omap-h63xx.git Char: stallion, don't fail with less than max panels Since it's not neccesary to have MAX_PANELS on the card, don't fail to let users use this card even in this case. Stop the testing for loop instead. Thanks to Ingo. Signed-off-by: Jiri Slaby Cc: "Ingo Korb" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/char/stallion.c b/drivers/char/stallion.c index e45113a7a47..265abadcf77 100644 --- a/drivers/char/stallion.c +++ b/drivers/char/stallion.c @@ -2172,7 +2172,7 @@ static int __devinit stl_initech(struct stlbrd *brdp) } status = inb(ioaddr + ECH_PNLSTATUS); if ((status & ECH_PNLIDMASK) != nxtid) - goto err_fr; + break; panelp = kzalloc(sizeof(struct stlpanel), GFP_KERNEL); if (!panelp) { printk("STALLION: failed to allocate memory "