]> git.karo-electronics.de Git - linux-beck.git/commitdiff
pnpbios: remove CONFIG_HOTPLUG ifdefs
authorBill Pemberton <wfp5p@virginia.edu>
Mon, 19 Nov 2012 18:19:14 +0000 (13:19 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Nov 2012 18:33:03 +0000 (10:33 -0800)
Remove conditional code based on CONFIG_HOTPLUG being false.  It's
always on now in preparation of it going away as an option.

Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Cc: Adam Belay <abelay@mit.edu>
Reviewed-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/pnp/pnpbios/core.c

index 9d4222648640b511e78472116e2af6e9cb46f6c3..5d66e5585f97c5483ea9d1e20dc6a9dfa11e7025 100644 (file)
@@ -91,8 +91,6 @@ struct pnp_dev_node_info node_info;
  *
  */
 
-#ifdef CONFIG_HOTPLUG
-
 static struct completion unload_sem;
 
 /*
@@ -199,8 +197,6 @@ static int pnp_dock_thread(void *unused)
        complete_and_exit(&unload_sem, 0);
 }
 
-#endif                         /* CONFIG_HOTPLUG */
-
 static int pnpbios_get_resources(struct pnp_dev *dev)
 {
        u8 nodenum = dev->number;
@@ -573,21 +569,19 @@ fs_initcall(pnpbios_init);
 
 static int __init pnpbios_thread_init(void)
 {
+       struct task_struct *task;
 #if defined(CONFIG_PPC)
        if (check_legacy_ioport(PNPBIOS_BASE))
                return 0;
 #endif
        if (pnpbios_disabled)
                return 0;
-#ifdef CONFIG_HOTPLUG
-       {
-               struct task_struct *task;
-               init_completion(&unload_sem);
-               task = kthread_run(pnp_dock_thread, NULL, "kpnpbiosd");
-               if (IS_ERR(task))
-                       return PTR_ERR(task);
-       }
-#endif
+
+       init_completion(&unload_sem);
+       task = kthread_run(pnp_dock_thread, NULL, "kpnpbiosd");
+       if (IS_ERR(task))
+               return PTR_ERR(task);
+
        return 0;
 }