]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit583b9db9a711af01e82b2f4872eb61bed7d6c333
treeef8ea74c78a5d30e89f7d94ee4be8781831f683b
parentbb68e0716f4310348ea4abb617ad8a2b3d9a2b7d
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