gpio: pl061: fix probe error handling code
authorBaruch Siach <baruch@tkos.co.il>
Tue, 30 Jun 2009 18:41:38 +0000 (11:41 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 1 Jul 2009 01:56:01 +0000 (18:56 -0700)
commit79d7f4ee23d41571d9e4663521b5e6604c55729a
treebe5c6b2c817c1d14a7b3da42c8c09671aa132752
parent66918dcdf91ad101194c749c18099e836ba3de2b
gpio: pl061: fix probe error handling code

Note that IRQ has not been initialized when kmalloc() fails.

Also, use DECLARE_BITMAP() to make the code clearer.

Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Cc: David Brownell <david-b@pacbell.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/gpio/pl061.c