[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20061204145017.b5f558a3.kristen.c.accardi@intel.com>
Date: Mon, 4 Dec 2006 14:50:17 -0800
From: Kristen Carlson Accardi <kristen.c.accardi@...el.com>
To: len.brown@...el.com
Cc: linux-kernel@...r.kernel.org, linux-acpi@...r.kernel.org,
Prarit Bhargava <prarit@...hat.com>,
Kristen Carlson Accardi <kristen.c.accardi@...el.com>
Subject: [patch 3/3] acpi: Fix symbol conflict between acpiphp and dock
From: Prarit Bhargava <prarit@...hat.com>
Fix bug which will cause acpiphp to not be able to load when dock.ko
cannot load.
Signed-off-by: Prarit Bhargava <prarit@...hat.com>
Signed-off-by: Kristen Carlson Accardi <kristen.c.accardi@...el.com>
---
drivers/acpi/dock.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
--- kristen-2.6.orig/drivers/acpi/dock.c
+++ kristen-2.6/drivers/acpi/dock.c
@@ -443,6 +443,9 @@ static int dock_in_progress(struct dock_
*/
int register_dock_notifier(struct notifier_block *nb)
{
+ if (!dock_station)
+ return -ENODEV;
+
return atomic_notifier_chain_register(&dock_notifier_list, nb);
}
@@ -454,6 +457,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);
}
@@ -806,7 +812,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 linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists