diff options
author | Chris Packham <chris.packham@alliedtelesis.co.nz> | 2020-03-26 23:44:22 +0100 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2020-03-28 05:03:17 +0100 |
commit | 14c1fe699cad9cb0acda4559c584f136d18fea50 (patch) | |
tree | 035d360d5de9a6d0dd778f68d2d8330994b11a1a /drivers/i2c/busses/i2c-pca-platform.c | |
parent | i2c: st: fix missing struct parameter description (diff) | |
download | linux-14c1fe699cad9cb0acda4559c584f136d18fea50.tar.xz linux-14c1fe699cad9cb0acda4559c584f136d18fea50.zip |
i2c: pca-platform: Use platform_irq_get_optional
The interrupt is not required so use platform_irq_get_optional() to
avoid error messages like
i2c-pca-platform 22080000.i2c: IRQ index 0 not found
Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/i2c/busses/i2c-pca-platform.c')
-rw-r--r-- | drivers/i2c/busses/i2c-pca-platform.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-pca-platform.c b/drivers/i2c/busses/i2c-pca-platform.c index a7a81846d5b1..635dd697ac0b 100644 --- a/drivers/i2c/busses/i2c-pca-platform.c +++ b/drivers/i2c/busses/i2c-pca-platform.c @@ -140,7 +140,7 @@ static int i2c_pca_pf_probe(struct platform_device *pdev) int ret = 0; int irq; - irq = platform_get_irq(pdev, 0); + irq = platform_get_irq_optional(pdev, 0); /* If irq is 0, we do polling. */ if (irq < 0) irq = 0; |