Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=2548c06b72396e28abdb5dd572ab589c3c22f4b9
Commit:     2548c06b72396e28abdb5dd572ab589c3c22f4b9
Parent:     c80fdbe81a617c82e2f95233f8ddcf046ffe21b3
Author:     Prarit Bhargava <[EMAIL PROTECTED]>
AuthorDate: Mon Dec 4 14:50:17 2006 -0800
Committer:  Len Brown <[EMAIL PROTECTED]>
CommitDate: Thu Dec 7 04:17:52 2006 -0500

    ACPI: dock: Fix symbol conflict between acpiphp and dock
    
    Fix bug which will cause acpiphp to not be able to load when dock.ko
    cannot load.
    
    Signed-off-by: Prarit Bhargava <[EMAIL PROTECTED]>
    Signed-off-by: Kristen Carlson Accardi <[EMAIL PROTECTED]>
    Signed-off-by: Len Brown <[EMAIL PROTECTED]>
---
 drivers/acpi/dock.c |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/drivers/acpi/dock.c b/drivers/acpi/dock.c
index e4c1a4f..8c6828b 100644
--- a/drivers/acpi/dock.c
+++ b/drivers/acpi/dock.c
@@ -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);
 }
 
@@ -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);
 }
 
@@ -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;
 }
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to