Skip to content
Commit 65b2aad0 authored by Anson Huang's avatar Anson Huang Committed by Guenter Roeck
Browse files

hwmon: (pwm-fan) Use dev_err_probe() to simplify error handling



dev_err_probe() can reduce code size, uniform error handling and record the
defer probe reason etc., use it to simplify the code.

Signed-off-by: default avatarAnson Huang <Anson.Huang@nxp.com>
Link: https://lore.kernel.org/r/1597649673-22329-1-git-send-email-Anson.Huang@nxp.com
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 4e1b4d22
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment