aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/hwmon/via-cputemp.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/drivers/hwmon/via-cputemp.c b/drivers/hwmon/via-cputemp.c
index ac91c07e3f90..5b9866b1b437 100644
--- a/drivers/hwmon/via-cputemp.c
+++ b/drivers/hwmon/via-cputemp.c
@@ -319,22 +319,8 @@ static int __init via_cputemp_init(void)
319 goto exit; 319 goto exit;
320 320
321 cpu_notifier_register_begin(); 321 cpu_notifier_register_begin();
322 for_each_online_cpu(i) { 322 for_each_online_cpu(i)
323 struct cpuinfo_x86 *c = &cpu_data(i);
324
325 if (c->x86 != 6)
326 continue;
327
328 if (c->x86_model < 0x0a)
329 continue;
330
331 if (c->x86_model > 0x0f) {
332 pr_warn("Unknown CPU model 0x%x\n", c->x86_model);
333 continue;
334 }
335
336 via_cputemp_device_add(i); 323 via_cputemp_device_add(i);
337 }
338 324
339#ifndef CONFIG_HOTPLUG_CPU 325#ifndef CONFIG_HOTPLUG_CPU
340 if (list_empty(&pdev_list)) { 326 if (list_empty(&pdev_list)) {