hwmon: (coretemp) update hotplug
Subsystems (2)
PATCH v3 1/3 hwmon: (coretemp) update hotplug
this patch fixes an unnecessary driver unregister. Because even none of online cpus supports coretemp, we can't assume new onlined cpu doesn't support it either. If related driver is unregistered there we have no chance to use coretemp from then on.
Signed-off-by Chen Gong <[email protected]>
--- drivers/hwmon/coretemp.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/hwmon/coretemp.c +2 -0
@@ -566,7 +566,9 @@ exit_devices_unreg: }mutex_unlock (&pdev_list_mutex); exit_driver_unreg: +#ifndef CONFIG_HOTPLUG_CPU platform_driver_unregister (&coretemp_driver); +#endif exit:return err; }
Signature · 7 lines
1.7.2.rc3 _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors