regmap: Don't try to map non-existant IRQs
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 5 Jun 2012 13:29:36 +0000 (14:29 +0100)
committerSimone Willett <swillett@nvidia.com>
Wed, 12 Sep 2012 19:31:32 +0000 (12:31 -0700)
commit313ce80afd5b353732011f125fe2aa39fdf72279
treeb7f43808c57f7d673465c9d644d2c77bab0c47ce
parenta8bdc44c56271ca33235e3c00b5b500c730d8346
regmap: Don't try to map non-existant IRQs

If the driver supplied an empty entry in the array of IRQs then return
an error rather than trying to do the mapping. This is intended for use
with handling chip variants and similar situations.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(cherry picked from commit bfd6185ddecc6e6f6bd654c053c307c9e49ca391)

Change-Id: I4f39385f1eb75af943cff001ba61efa5aa468942
Signed-off-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-on: http://git-master/r/131470
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
drivers/base/regmap/regmap-irq.c