Commit 5e28d5e4 authored by Yongsheng Yang's avatar Yongsheng Yang Committed by Guenter Roeck
Browse files

Documentation/hwmon: Fix description of devm_hwmon_device_unregister()



Use devm_hwmon_device_register_with_info to replace
hwmon_device_register_with_info in description of
devm_hwmon_device_unregister.

Signed-off-by: default avatarYongsheng Yang <iyysheng@gmail.com>
Reviewed-by: default avatarBagas Sanjaya <bagasdotme@gmail.com>
Link: https://lore.kernel.org/r/20230609075510.1305-1-iyysheng@gmail.com


Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 7357b187
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -66,7 +66,7 @@ hwmon_device_register_with_info.

devm_hwmon_device_unregister does not normally have to be called. It is only
needed for error handling, and only needed if the driver probe fails after
the call to hwmon_device_register_with_info and if the automatic (device
the call to devm_hwmon_device_register_with_info and if the automatic (device
managed) removal would be too late.

All supported hwmon device registration functions only accept valid device