Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 217101
b: refs/heads/master
c: 17c10d6
h: refs/heads/master
i:
  217099: bf08a48
v: v3
  • Loading branch information
Chen Gong authored and Guenter Roeck committed Oct 25, 2010
1 parent 8c86b05 commit d7d057a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fd53d08465a79d742a297be1d7d173f8a13972a6
refs/heads/master: 17c10d61c750619324ee2a46c5a9e03a435fe212
3 changes: 1 addition & 2 deletions trunk/drivers/hwmon/coretemp.c
Original file line number Diff line number Diff line change
Expand Up @@ -566,9 +566,8 @@ static int __init coretemp_init(void)
static void __exit coretemp_exit(void)
{
struct pdev_entry *p, *n;
#ifdef CONFIG_HOTPLUG_CPU

unregister_hotcpu_notifier(&coretemp_cpu_notifier);
#endif
mutex_lock(&pdev_list_mutex);
list_for_each_entry_safe(p, n, &pdev_list, list) {
platform_device_unregister(p->pdev);
Expand Down
7 changes: 1 addition & 6 deletions trunk/drivers/hwmon/pkgtemp.c
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,6 @@ static int __cpuinit pkgtemp_device_add(unsigned int cpu)
return err;
}

#ifdef CONFIG_HOTPLUG_CPU
static void __cpuinit pkgtemp_device_remove(unsigned int cpu)
{
struct pdev_entry *p;
Expand Down Expand Up @@ -387,7 +386,6 @@ static int __cpuinit pkgtemp_cpu_callback(struct notifier_block *nfb,
static struct notifier_block pkgtemp_cpu_notifier __refdata = {
.notifier_call = pkgtemp_cpu_callback,
};
#endif /* !CONFIG_HOTPLUG_CPU */

static int __init pkgtemp_init(void)
{
Expand All @@ -411,9 +409,7 @@ static int __init pkgtemp_init(void)
}
#endif

#ifdef CONFIG_HOTPLUG_CPU
register_hotcpu_notifier(&pkgtemp_cpu_notifier);
#endif
return 0;

#ifndef CONFIG_HOTPLUG_CPU
Expand All @@ -427,9 +423,8 @@ static int __init pkgtemp_init(void)
static void __exit pkgtemp_exit(void)
{
struct pdev_entry *p, *n;
#ifdef CONFIG_HOTPLUG_CPU

unregister_hotcpu_notifier(&pkgtemp_cpu_notifier);
#endif
mutex_lock(&pdev_list_mutex);
list_for_each_entry_safe(p, n, &pdev_list, list) {
platform_device_unregister(p->pdev);
Expand Down
7 changes: 1 addition & 6 deletions trunk/drivers/hwmon/via-cputemp.c
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,6 @@ static int __cpuinit via_cputemp_device_add(unsigned int cpu)
return err;
}

#ifdef CONFIG_HOTPLUG_CPU
static void __cpuinit via_cputemp_device_remove(unsigned int cpu)
{
struct pdev_entry *p, *n;
Expand Down Expand Up @@ -270,7 +269,6 @@ static int __cpuinit via_cputemp_cpu_callback(struct notifier_block *nfb,
static struct notifier_block via_cputemp_cpu_notifier __refdata = {
.notifier_call = via_cputemp_cpu_callback,
};
#endif /* !CONFIG_HOTPLUG_CPU */

static int __init via_cputemp_init(void)
{
Expand Down Expand Up @@ -311,9 +309,7 @@ static int __init via_cputemp_init(void)
goto exit_driver_unreg;
}

#ifdef CONFIG_HOTPLUG_CPU
register_hotcpu_notifier(&via_cputemp_cpu_notifier);
#endif
return 0;

exit_devices_unreg:
Expand All @@ -333,9 +329,8 @@ static int __init via_cputemp_init(void)
static void __exit via_cputemp_exit(void)
{
struct pdev_entry *p, *n;
#ifdef CONFIG_HOTPLUG_CPU

unregister_hotcpu_notifier(&via_cputemp_cpu_notifier);
#endif
mutex_lock(&pdev_list_mutex);
list_for_each_entry_safe(p, n, &pdev_list, list) {
platform_device_unregister(p->pdev);
Expand Down

0 comments on commit d7d057a

Please sign in to comment.