i2c: mv64xxx: don't override deferred probing when getting irq
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 16 May 2017 12:07:24 +0000 (14:07 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Tue, 16 May 2017 21:19:00 +0000 (23:19 +0200)
commit88ad60c23a394b2f8bf1e570c756f415435d1d35
treeef8ea74c78a5d30e89f7d94ee4be8781831f683b
parentfc9d0cd9ca3f013663d79d9201d1df6c14f3ca10
i2c: mv64xxx: don't override deferred probing when getting irq

There is no reason to use platform_get_irq() for non-DT probing and
irq_of_parse_and_map() for DT probing. Indeed, platform_get_irq()
works fine for both.

In addition, using platform_get_irq() properly returns -EPROBE_DEFER
when the interrupt controller is not yet available, so instead of
inventing our own error code (-ENXIO), return the one provided by
platform_get_irq().

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-mv64xxx.c