On Wed, Aug 28, 2019 at 10:34:11AM +0200, Thierry Reding wrote:
> From: Thierry Reding <[email protected]>
> 
> 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]>

Acked-by: Guenter Roeck <[email protected]>

I assume that Greg will pick up this patch.

Guenter

> ---
>  drivers/hwmon/pwm-fan.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> 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;
>  
> -- 
> 2.22.0
> 

Reply via email to