diff options
author | Len Brown <len.brown@intel.com> | 2006-01-07 03:50:18 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2006-01-07 03:50:18 -0500 |
commit | ed03f430cdc8c802652467e9097606fedc2c7abc (patch) | |
tree | 30941ec1e6f93e99358fefe18175e5dd800a4379 /drivers/acpi/scan.c | |
parent | ed349a8a0a780ed27e2a765f16cee54d9b63bfee (diff) | |
parent | 6f957eaf79356a32e838f5f262ee9a60544b1d5b (diff) |
Pull pnpacpi into acpica branch
Diffstat (limited to 'drivers/acpi/scan.c')
-rw-r--r-- | drivers/acpi/scan.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c index e332306ae2b9..c60516d0f66b 100644 --- a/drivers/acpi/scan.c +++ b/drivers/acpi/scan.c | |||
@@ -78,7 +78,7 @@ static struct kobj_type ktype_acpi_ns = { | |||
78 | .release = acpi_device_release, | 78 | .release = acpi_device_release, |
79 | }; | 79 | }; |
80 | 80 | ||
81 | static int namespace_hotplug(struct kset *kset, struct kobject *kobj, | 81 | static int namespace_uevent(struct kset *kset, struct kobject *kobj, |
82 | char **envp, int num_envp, char *buffer, | 82 | char **envp, int num_envp, char *buffer, |
83 | int buffer_size) | 83 | int buffer_size) |
84 | { | 84 | { |
@@ -89,8 +89,8 @@ static int namespace_hotplug(struct kset *kset, struct kobject *kobj, | |||
89 | if (!dev->driver) | 89 | if (!dev->driver) |
90 | return 0; | 90 | return 0; |
91 | 91 | ||
92 | if (add_hotplug_env_var(envp, num_envp, &i, buffer, buffer_size, &len, | 92 | if (add_uevent_var(envp, num_envp, &i, buffer, buffer_size, &len, |
93 | "PHYSDEVDRIVER=%s", dev->driver->name)) | 93 | "PHYSDEVDRIVER=%s", dev->driver->name)) |
94 | return -ENOMEM; | 94 | return -ENOMEM; |
95 | 95 | ||
96 | envp[i] = NULL; | 96 | envp[i] = NULL; |
@@ -98,8 +98,8 @@ static int namespace_hotplug(struct kset *kset, struct kobject *kobj, | |||
98 | return 0; | 98 | return 0; |
99 | } | 99 | } |
100 | 100 | ||
101 | static struct kset_hotplug_ops namespace_hotplug_ops = { | 101 | static struct kset_uevent_ops namespace_uevent_ops = { |
102 | .hotplug = &namespace_hotplug, | 102 | .uevent = &namespace_uevent, |
103 | }; | 103 | }; |
104 | 104 | ||
105 | static struct kset acpi_namespace_kset = { | 105 | static struct kset acpi_namespace_kset = { |
@@ -108,7 +108,7 @@ static struct kset acpi_namespace_kset = { | |||
108 | }, | 108 | }, |
109 | .subsys = &acpi_subsys, | 109 | .subsys = &acpi_subsys, |
110 | .ktype = &ktype_acpi_ns, | 110 | .ktype = &ktype_acpi_ns, |
111 | .hotplug_ops = &namespace_hotplug_ops, | 111 | .uevent_ops = &namespace_uevent_ops, |
112 | }; | 112 | }; |
113 | 113 | ||
114 | static void acpi_device_register(struct acpi_device *device, | 114 | static void acpi_device_register(struct acpi_device *device, |
@@ -347,7 +347,7 @@ static int acpi_bus_get_wakeup_device_flags(struct acpi_device *device) | |||
347 | } | 347 | } |
348 | 348 | ||
349 | /* -------------------------------------------------------------------------- | 349 | /* -------------------------------------------------------------------------- |
350 | ACPI hotplug sysfs device file support | 350 | ACPI sysfs device file support |
351 | -------------------------------------------------------------------------- */ | 351 | -------------------------------------------------------------------------- */ |
352 | static ssize_t acpi_eject_store(struct acpi_device *device, | 352 | static ssize_t acpi_eject_store(struct acpi_device *device, |
353 | const char *buf, size_t count); | 353 | const char *buf, size_t count); |