Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 44950
b: refs/heads/master
c: 2548c06
h: refs/heads/master
v: v3
  • Loading branch information
Prarit Bhargava authored and Len Brown committed Dec 7, 2006
1 parent 11a22bd commit 0928767
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 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: c80fdbe81a617c82e2f95233f8ddcf046ffe21b3
refs/heads/master: 2548c06b72396e28abdb5dd572ab589c3c22f4b9
8 changes: 7 additions & 1 deletion trunk/drivers/acpi/dock.c
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,9 @@ static int dock_in_progress(struct dock_station *ds)
*/
int register_dock_notifier(struct notifier_block *nb)
{
if (!dock_station)
return -ENODEV;

return atomic_notifier_chain_register(&dock_notifier_list, nb);
}

Expand All @@ -455,6 +458,9 @@ EXPORT_SYMBOL_GPL(register_dock_notifier);
*/
void unregister_dock_notifier(struct notifier_block *nb)
{
if (!dock_station)
return;

atomic_notifier_chain_unregister(&dock_notifier_list, nb);
}

Expand Down Expand Up @@ -807,7 +813,7 @@ static int __init dock_init(void)
ACPI_UINT32_MAX, find_dock, &num, NULL);

if (!num)
return -ENODEV;
printk(KERN_INFO "No dock devices found.\n");

return 0;
}
Expand Down

0 comments on commit 0928767

Please sign in to comment.