gpio/pca953x: Fix IRQ support.
authorDavid Jander <david@protonic.nl>
Tue, 14 Jun 2011 09:00:54 +0000 (11:00 +0200)
committerGrant Likely <grant.likely@secretlab.ca>
Thu, 16 Jun 2011 19:41:48 +0000 (13:41 -0600)
commitc609c05db10dcb020f6869186e548a0596a78896
treed42fe679540080fe712a613f37372b9d4fca3b9d
parent8e46ea3ec8b132bffd989741e8d154accb623645
gpio/pca953x: Fix IRQ support.

It seems that in the normal case, IRQ_NOREQUEST needs to be explicitly
cleared, otherwise claiming the interrupt fails.
In the case of sparse interrupts, the descriptor needs to be allocated
first.

Signed-off-by: David Jander <david@protonic.nl>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/gpio/gpio-pca953x.c