diff options
| author | Thierry Reding <[email protected]> | 2019-08-28 08:34:11 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2019-08-28 20:52:30 +0000 |
| commit | 6e7e5c7fbc1c84e4ac657e0cb5bf9ca24492cc8f (patch) | |
| tree | c1a4a97c3b29b0df364af766757cba818cded0fa /drivers/hwmon/pwm-fan.c | |
| parent | driver core: platform: Introduce platform_get_irq_optional() (diff) | |
| download | kernel-6e7e5c7fbc1c84e4ac657e0cb5bf9ca24492cc8f.tar.gz kernel-6e7e5c7fbc1c84e4ac657e0cb5bf9ca24492cc8f.zip | |
hwmon: pwm-fan: Use platform_get_irq_optional()
The PWM fan interrupt is optional, so we don't want an error message in
the kernel log if it wasn't specified.
Signed-off-by: Thierry Reding <[email protected]>
Reviewed-by: Stephen Boyd <[email protected]>
Acked-by: Guenter Roeck <[email protected]>
Acked-by: Bartlomiej Zolnierkiewicz <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/hwmon/pwm-fan.c')
| -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) platform_set_drvdata(pdev, ctx); - ctx->irq = platform_get_irq(pdev, 0); + ctx->irq = platform_get_irq_optional(pdev, 0); if (ctx->irq == -EPROBE_DEFER) return ctx->irq; |
