Skip to content

Commit 14c1fe6

Browse files
cpackham-atlnzWolfram Sang
authored andcommitted
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 <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
1 parent f491c66 commit 14c1fe6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/i2c/busses/i2c-pca-platform.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ static int i2c_pca_pf_probe(struct platform_device *pdev)
140140
int ret = 0;
141141
int irq;
142142

143-
irq = platform_get_irq(pdev, 0);
143+
irq = platform_get_irq_optional(pdev, 0);
144144
/* If irq is 0, we do polling. */
145145
if (irq < 0)
146146
irq = 0;

0 commit comments

Comments
 (0)