mfd: ucb1x00: Remove NO_IRQ check
authorArnd Bergmann <arnd@arndb.de>
Tue, 6 Sep 2016 13:53:29 +0000 (15:53 +0200)
committerLee Jones <lee.jones@linaro.org>
Mon, 12 Sep 2016 08:56:21 +0000 (09:56 +0100)
commit41a6a6ee8d063e73a02b6baf41feb5d89529c511
treed53d03eac61ca8e62ca7abf3ef61f7c0dbd7f4a1
parentc189f6b4ed83ed13ab575a59f53b3198ea95434d
mfd: ucb1x00: Remove NO_IRQ check

probe_irq_off() returns '0' on failure, not NO_IRQ, so the check
in this driver is clearly wrong. This replaces it with the
regular '!irq' check used in other drivers.

The sa1100 platform that this driver is used on originally numbered
all its interrupts starting at '0', which would have conflicted with
this change, but as of commit 18f3aec ("ARM: 8230/1: sa1100: shift
IRQs by one"), this is not a problem any more.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/ucb1x00-core.c
This page took 0.025556 seconds and 5 git commands to generate.