]> git.baikalelectronics.ru Git - kernel.git/commit
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>
Tue, 4 Oct 2016 14:48:03 +0000 (15:48 +0100)
commit8ef5706da0db69c929ef65ad9c617bae524d3183
treeed0352f85fafa9081544312aa65963fcd6c615a8
parent032fa49f372b2d553eed628089fe4b2e412f52a5
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 a159084 ("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