]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: pca-platform: Use platform_irq_get_optional
authorChris Packham <chris.packham@alliedtelesis.co.nz>
Thu, 26 Mar 2020 22:44:22 +0000 (11:44 +1300)
committerWolfram Sang <wsa@the-dreams.de>
Sat, 28 Mar 2020 04:03:17 +0000 (05:03 +0100)
commit1e8bab06a5831810957445e4b6a99f49a313e6b7
tree035d360d5de9a6d0dd778f68d2d8330994b11a1a
parent1bc7293c07190136b9c78128996db55954a4daf6
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>
drivers/i2c/busses/i2c-pca-platform.c