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

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.comSigned-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 7357b187
No related merge requests found
......@@ -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
......
Markdown is supported
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