diff options
author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2017-05-16 15:07:24 +0300 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2017-05-17 00:19:00 +0300 |
commit | 88ad60c23a394b2f8bf1e570c756f415435d1d35 (patch) | |
tree | ef8ea74c78a5d30e89f7d94ee4be8781831f683b /drivers/i2c/busses/i2c-xgene-slimpro.c | |
parent | fc9d0cd9ca3f013663d79d9201d1df6c14f3ca10 (diff) | |
download | linux-88ad60c23a394b2f8bf1e570c756f415435d1d35.tar.xz |
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>
Diffstat (limited to 'drivers/i2c/busses/i2c-xgene-slimpro.c')
0 files changed, 0 insertions, 0 deletions