Commits
![Guenter Roeck](https://secure.gravatar.com/avatar/5310e4cef02c9a8db987f669d4d5828f.jpg?s=96&d=mm)
Guenter Roeck committed 9ebe010e566
hwmon: (mlxreg-fan) Use devm_thermal_of_cooling_device_register Call devm_thermal_of_cooling_device_register() to register the cooling device. Also introduce struct device *dev = &pdev->dev; to make the code easier to read. Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Eduardo Valentin <edubezval@gmail.com>