gpio/pca953x: Fix IRQ support.
authorDavid Jander <david@protonic.nl>
Wed, 8 Jun 2011 17:34:37 +0000 (11:34 -0600)
committerGrant Likely <grant.likely@secretlab.ca>
Wed, 8 Jun 2011 17:34:37 +0000 (11:34 -0600)
commit910c8fb6b4b8c9e0be576b6a78f4cccf228a4bfd
treee0825a1cb14400b5c938fe7d7e323dcb6a289c75
parent47732cb4fdee72e6ea4d2ae40d72da4d2cedf97e
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