Skip to contentSkip to conversation

hwmon: (coretemp) update hotplug

PATCH In review Chen Gong 1 participant 1 message Jul 23, 2010

Subsystems (2)
lore
Share & tools
lore

Chen Gong

author
#0 lore raw

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.

---
 drivers/hwmon/coretemp.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/hwmon/coretemp.c +2 -0
index 05344af..a3bad59 100644
@@ -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