Skip to content
Commit f2173fa2 authored by Christian Schneider's avatar Christian Schneider Committed by Guenter Roeck
Browse files

hwmon: (gpio-fan) move fan_alarm_init after devm_hwmon_device_register_with_groups



This makes it possible to use the hwmon_dev in fan_alarm_notify(). Otherwise
it would be possible, that a interupt arrives and fan_alarm_notify() is
executed, before hwmon_dev is initialized.

Signed-off-by: default avatarChristian Schneider <cschneider@radiodata.biz>
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 7a1d220c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment