diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/pnp/pnpbios/core.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/pnp/pnpbios/core.c b/drivers/pnp/pnpbios/core.c index f49674f07949..b154b3f52cbe 100644 --- a/drivers/pnp/pnpbios/core.c +++ b/drivers/pnp/pnpbios/core.c | |||
@@ -56,7 +56,6 @@ | |||
56 | #include <linux/mm.h> | 56 | #include <linux/mm.h> |
57 | #include <linux/smp.h> | 57 | #include <linux/smp.h> |
58 | #include <linux/slab.h> | 58 | #include <linux/slab.h> |
59 | #include <linux/kobject_uevent.h> | ||
60 | #include <linux/completion.h> | 59 | #include <linux/completion.h> |
61 | #include <linux/spinlock.h> | 60 | #include <linux/spinlock.h> |
62 | #include <linux/dmi.h> | 61 | #include <linux/dmi.h> |
@@ -106,8 +105,6 @@ static int pnp_dock_event(int dock, struct pnp_docking_station_info *info) | |||
106 | char *argv [3], **envp, *buf, *scratch; | 105 | char *argv [3], **envp, *buf, *scratch; |
107 | int i = 0, value; | 106 | int i = 0, value; |
108 | 107 | ||
109 | if (!hotplug_path [0]) | ||
110 | return -ENOENT; | ||
111 | if (!current->fs->root) { | 108 | if (!current->fs->root) { |
112 | return -EAGAIN; | 109 | return -EAGAIN; |
113 | } | 110 | } |
@@ -119,8 +116,9 @@ static int pnp_dock_event(int dock, struct pnp_docking_station_info *info) | |||
119 | return -ENOMEM; | 116 | return -ENOMEM; |
120 | } | 117 | } |
121 | 118 | ||
122 | /* only one standardized param to hotplug command: type */ | 119 | /* FIXME: if there are actual users of this, it should be integrated into |
123 | argv [0] = hotplug_path; | 120 | * the driver core and use the usual infrastructure like sysfs and uevents */ |
121 | argv [0] = "/sbin/pnpbios"; | ||
124 | argv [1] = "dock"; | 122 | argv [1] = "dock"; |
125 | argv [2] = NULL; | 123 | argv [2] = NULL; |
126 | 124 | ||