diff options
-rw-r--r-- | drivers/hwmon/pwm-fan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/pwm-fan.c b/drivers/hwmon/pwm-fan.c index 54c0ff00d67f..42ffd2e5182d 100644 --- a/drivers/hwmon/pwm-fan.c +++ b/drivers/hwmon/pwm-fan.c | |||
@@ -304,7 +304,7 @@ static int pwm_fan_probe(struct platform_device *pdev) | |||
304 | 304 | ||
305 | platform_set_drvdata(pdev, ctx); | 305 | platform_set_drvdata(pdev, ctx); |
306 | 306 | ||
307 | ctx->irq = platform_get_irq(pdev, 0); | 307 | ctx->irq = platform_get_irq_optional(pdev, 0); |
308 | if (ctx->irq == -EPROBE_DEFER) | 308 | if (ctx->irq == -EPROBE_DEFER) |
309 | return ctx->irq; | 309 | return ctx->irq; |
310 | 310 | ||