diff options
| author | Paul Mackerras <paulus@samba.org> | 2006-03-28 21:24:50 -0500 |
|---|---|---|
| committer | Paul Mackerras <paulus@samba.org> | 2006-03-28 21:24:50 -0500 |
| commit | bac30d1a78d0f11c613968fc8b351a91ed465386 (patch) | |
| tree | e52f3c876522a2f6047a6ec1c27df2e8a79486b8 /drivers/macintosh | |
| parent | e8222502ee6157e2713da9e0792c21f4ad458d50 (diff) | |
| parent | ca9ba4471c1203bb6e759b76e83167fec54fe590 (diff) | |
Merge ../linux-2.6
Diffstat (limited to 'drivers/macintosh')
| -rw-r--r-- | drivers/macintosh/adb.c | 11 | ||||
| -rw-r--r-- | drivers/macintosh/adbhid.c | 3 | ||||
| -rw-r--r-- | drivers/macintosh/via-pmu.c | 2 | ||||
| -rw-r--r-- | drivers/macintosh/via-pmu68k.c | 7 | ||||
| -rw-r--r-- | drivers/macintosh/windfarm_core.c | 8 |
5 files changed, 18 insertions, 13 deletions
diff --git a/drivers/macintosh/adb.c b/drivers/macintosh/adb.c index 781d93b0bbd5..259fd8973ce9 100644 --- a/drivers/macintosh/adb.c +++ b/drivers/macintosh/adb.c | |||
| @@ -81,7 +81,7 @@ static struct adb_driver *adb_driver_list[] = { | |||
| 81 | static struct class *adb_dev_class; | 81 | static struct class *adb_dev_class; |
| 82 | 82 | ||
| 83 | struct adb_driver *adb_controller; | 83 | struct adb_driver *adb_controller; |
| 84 | struct notifier_block *adb_client_list = NULL; | 84 | BLOCKING_NOTIFIER_HEAD(adb_client_list); |
| 85 | static int adb_got_sleep; | 85 | static int adb_got_sleep; |
| 86 | static int adb_inited; | 86 | static int adb_inited; |
| 87 | static pid_t adb_probe_task_pid; | 87 | static pid_t adb_probe_task_pid; |
| @@ -355,7 +355,8 @@ adb_notify_sleep(struct pmu_sleep_notifier *self, int when) | |||
| 355 | /* Stop autopoll */ | 355 | /* Stop autopoll */ |
| 356 | if (adb_controller->autopoll) | 356 | if (adb_controller->autopoll) |
| 357 | adb_controller->autopoll(0); | 357 | adb_controller->autopoll(0); |
| 358 | ret = notifier_call_chain(&adb_client_list, ADB_MSG_POWERDOWN, NULL); | 358 | ret = blocking_notifier_call_chain(&adb_client_list, |
| 359 | ADB_MSG_POWERDOWN, NULL); | ||
| 359 | if (ret & NOTIFY_STOP_MASK) { | 360 | if (ret & NOTIFY_STOP_MASK) { |
| 360 | up(&adb_probe_mutex); | 361 | up(&adb_probe_mutex); |
| 361 | return PBOOK_SLEEP_REFUSE; | 362 | return PBOOK_SLEEP_REFUSE; |
| @@ -392,7 +393,8 @@ do_adb_reset_bus(void) | |||
| 392 | if (adb_controller->autopoll) | 393 | if (adb_controller->autopoll) |
| 393 | adb_controller->autopoll(0); | 394 | adb_controller->autopoll(0); |
| 394 | 395 | ||
| 395 | nret = notifier_call_chain(&adb_client_list, ADB_MSG_PRE_RESET, NULL); | 396 | nret = blocking_notifier_call_chain(&adb_client_list, |
| 397 | ADB_MSG_PRE_RESET, NULL); | ||
| 396 | if (nret & NOTIFY_STOP_MASK) { | 398 | if (nret & NOTIFY_STOP_MASK) { |
| 397 | if (adb_controller->autopoll) | 399 | if (adb_controller->autopoll) |
| 398 | adb_controller->autopoll(autopoll_devs); | 400 | adb_controller->autopoll(autopoll_devs); |
| @@ -427,7 +429,8 @@ do_adb_reset_bus(void) | |||
| 427 | } | 429 | } |
| 428 | up(&adb_handler_sem); | 430 | up(&adb_handler_sem); |
| 429 | 431 | ||
| 430 | nret = notifier_call_chain(&adb_client_list, ADB_MSG_POST_RESET, NULL); | 432 | nret = blocking_notifier_call_chain(&adb_client_list, |
| 433 | ADB_MSG_POST_RESET, NULL); | ||
| 431 | if (nret & NOTIFY_STOP_MASK) | 434 | if (nret & NOTIFY_STOP_MASK) |
| 432 | return -EBUSY; | 435 | return -EBUSY; |
| 433 | 436 | ||
diff --git a/drivers/macintosh/adbhid.c b/drivers/macintosh/adbhid.c index 0a4c680d4ac0..394334ec5765 100644 --- a/drivers/macintosh/adbhid.c +++ b/drivers/macintosh/adbhid.c | |||
| @@ -1214,7 +1214,8 @@ static int __init adbhid_init(void) | |||
| 1214 | 1214 | ||
| 1215 | adbhid_probe(); | 1215 | adbhid_probe(); |
| 1216 | 1216 | ||
| 1217 | notifier_chain_register(&adb_client_list, &adbhid_adb_notifier); | 1217 | blocking_notifier_chain_register(&adb_client_list, |
| 1218 | &adbhid_adb_notifier); | ||
| 1218 | 1219 | ||
| 1219 | return 0; | 1220 | return 0; |
| 1220 | } | 1221 | } |
diff --git a/drivers/macintosh/via-pmu.c b/drivers/macintosh/via-pmu.c index 4f5f3abc9cb3..0b5ff553e39a 100644 --- a/drivers/macintosh/via-pmu.c +++ b/drivers/macintosh/via-pmu.c | |||
| @@ -187,7 +187,7 @@ extern int disable_kernel_backlight; | |||
| 187 | 187 | ||
| 188 | int __fake_sleep; | 188 | int __fake_sleep; |
| 189 | int asleep; | 189 | int asleep; |
| 190 | struct notifier_block *sleep_notifier_list; | 190 | BLOCKING_NOTIFIER_HEAD(sleep_notifier_list); |
| 191 | 191 | ||
| 192 | #ifdef CONFIG_ADB | 192 | #ifdef CONFIG_ADB |
| 193 | static int adb_dev_map = 0; | 193 | static int adb_dev_map = 0; |
diff --git a/drivers/macintosh/via-pmu68k.c b/drivers/macintosh/via-pmu68k.c index f08e52f2107b..35b70323e7e3 100644 --- a/drivers/macintosh/via-pmu68k.c +++ b/drivers/macintosh/via-pmu68k.c | |||
| @@ -102,7 +102,7 @@ static int pmu_kind = PMU_UNKNOWN; | |||
| 102 | static int pmu_fully_inited = 0; | 102 | static int pmu_fully_inited = 0; |
| 103 | 103 | ||
| 104 | int asleep; | 104 | int asleep; |
| 105 | struct notifier_block *sleep_notifier_list; | 105 | BLOCKING_NOTIFIER_HEAD(sleep_notifier_list); |
| 106 | 106 | ||
| 107 | static int pmu_probe(void); | 107 | static int pmu_probe(void); |
| 108 | static int pmu_init(void); | 108 | static int pmu_init(void); |
| @@ -913,7 +913,8 @@ int powerbook_sleep(void) | |||
| 913 | struct adb_request sleep_req; | 913 | struct adb_request sleep_req; |
| 914 | 914 | ||
| 915 | /* Notify device drivers */ | 915 | /* Notify device drivers */ |
| 916 | ret = notifier_call_chain(&sleep_notifier_list, PBOOK_SLEEP, NULL); | 916 | ret = blocking_notifier_call_chain(&sleep_notifier_list, |
| 917 | PBOOK_SLEEP, NULL); | ||
| 917 | if (ret & NOTIFY_STOP_MASK) | 918 | if (ret & NOTIFY_STOP_MASK) |
| 918 | return -EBUSY; | 919 | return -EBUSY; |
| 919 | 920 | ||
| @@ -984,7 +985,7 @@ int powerbook_sleep(void) | |||
| 984 | enable_irq(i); | 985 | enable_irq(i); |
| 985 | 986 | ||
| 986 | /* Notify drivers */ | 987 | /* Notify drivers */ |
| 987 | notifier_call_chain(&sleep_notifier_list, PBOOK_WAKE, NULL); | 988 | blocking_notifier_call_chain(&sleep_notifier_list, PBOOK_WAKE, NULL); |
| 988 | 989 | ||
| 989 | /* reenable ADB autopoll */ | 990 | /* reenable ADB autopoll */ |
| 990 | pmu_adb_autopoll(adb_dev_map); | 991 | pmu_adb_autopoll(adb_dev_map); |
diff --git a/drivers/macintosh/windfarm_core.c b/drivers/macintosh/windfarm_core.c index 6c0ba04bc57a..ab3faa702d58 100644 --- a/drivers/macintosh/windfarm_core.c +++ b/drivers/macintosh/windfarm_core.c | |||
| @@ -52,7 +52,7 @@ | |||
| 52 | static LIST_HEAD(wf_controls); | 52 | static LIST_HEAD(wf_controls); |
| 53 | static LIST_HEAD(wf_sensors); | 53 | static LIST_HEAD(wf_sensors); |
| 54 | static DEFINE_MUTEX(wf_lock); | 54 | static DEFINE_MUTEX(wf_lock); |
| 55 | static struct notifier_block *wf_client_list; | 55 | static BLOCKING_NOTIFIER_HEAD(wf_client_list); |
| 56 | static int wf_client_count; | 56 | static int wf_client_count; |
| 57 | static unsigned int wf_overtemp; | 57 | static unsigned int wf_overtemp; |
| 58 | static unsigned int wf_overtemp_counter; | 58 | static unsigned int wf_overtemp_counter; |
| @@ -68,7 +68,7 @@ static struct platform_device wf_platform_device = { | |||
| 68 | 68 | ||
| 69 | static inline void wf_notify(int event, void *param) | 69 | static inline void wf_notify(int event, void *param) |
| 70 | { | 70 | { |
| 71 | notifier_call_chain(&wf_client_list, event, param); | 71 | blocking_notifier_call_chain(&wf_client_list, event, param); |
| 72 | } | 72 | } |
| 73 | 73 | ||
| 74 | int wf_critical_overtemp(void) | 74 | int wf_critical_overtemp(void) |
| @@ -398,7 +398,7 @@ int wf_register_client(struct notifier_block *nb) | |||
| 398 | struct wf_sensor *sr; | 398 | struct wf_sensor *sr; |
| 399 | 399 | ||
| 400 | mutex_lock(&wf_lock); | 400 | mutex_lock(&wf_lock); |
| 401 | rc = notifier_chain_register(&wf_client_list, nb); | 401 | rc = blocking_notifier_chain_register(&wf_client_list, nb); |
| 402 | if (rc != 0) | 402 | if (rc != 0) |
| 403 | goto bail; | 403 | goto bail; |
| 404 | wf_client_count++; | 404 | wf_client_count++; |
| @@ -417,7 +417,7 @@ EXPORT_SYMBOL_GPL(wf_register_client); | |||
| 417 | int wf_unregister_client(struct notifier_block *nb) | 417 | int wf_unregister_client(struct notifier_block *nb) |
| 418 | { | 418 | { |
| 419 | mutex_lock(&wf_lock); | 419 | mutex_lock(&wf_lock); |
| 420 | notifier_chain_unregister(&wf_client_list, nb); | 420 | blocking_notifier_chain_unregister(&wf_client_list, nb); |
| 421 | wf_client_count++; | 421 | wf_client_count++; |
| 422 | if (wf_client_count == 0) | 422 | if (wf_client_count == 0) |
| 423 | wf_stop_thread(); | 423 | wf_stop_thread(); |
