Skip to content

Commit 5e28d5e

Browse files
iyshenggroeck
authored andcommitted
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: Yongsheng Yang <iyysheng@gmail.com> Reviewed-by: Bagas Sanjaya <bagasdotme@gmail.com> Link: https://lore.kernel.org/r/20230609075510.1305-1-iyysheng@gmail.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
1 parent 7357b18 commit 5e28d5e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Documentation/hwmon/hwmon-kernel-api.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ hwmon_device_register_with_info.
6666

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

7272
All supported hwmon device registration functions only accept valid device

0 commit comments

Comments
 (0)