Message ID | alpine.DEB.2.20.1701100648130.2185@hadrien (mailing list archive) |
---|---|
State | Not Applicable |
Headers | show |
--- a/drivers/hwmon/aspeed-pwm-tacho.c +++ b/drivers/hwmon/aspeed-pwm-tacho.c @@ -855,10 +855,7 @@ static int aspeed_pwm_tacho_probe(struct hwmon = devm_hwmon_device_register_with_groups(&pdev->dev, "aspeed_pwm_tacho", priv, priv->groups); - if (IS_ERR(hwmon)) - return PTR_ERR(hwmon); - - return 0; + return PTR_ERR_OR_ZERO(hwmon); } static const struct of_device_id of_pwm_tacho_match_table[] = {