aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org.(none)>2005-04-19 16:14:28 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org.(none)>2005-04-19 16:14:28 -0400
commit9f6c6fc505560465be0964eb4da1b6ca97bd3951 (patch)
tree9660991b5e417ad7bb74e105c037ff358f60ba27 /drivers
parentc3c661932cd53582c5b03692b99649300977248a (diff)
parentf0e035f4b6940aae6836500b642029c289ed4535 (diff)
Merge with kernel.org:/pub/scm/linux/kernel/git/gregkh/driver-2.6.git/
for 13 driver core, sysfs, and debugfs fixes.
Diffstat (limited to 'drivers')
-rw-r--r--drivers/base/class.c2
-rw-r--r--drivers/base/core.c3
-rw-r--r--drivers/base/firmware_class.c3
-rw-r--r--drivers/base/platform.c1
-rw-r--r--drivers/usb/host/hc_crisv10.c1
5 files changed, 10 insertions, 0 deletions
diff --git a/drivers/base/class.c b/drivers/base/class.c
index 6bf650fce78c..d2a2f8f2b4ed 100644
--- a/drivers/base/class.c
+++ b/drivers/base/class.c
@@ -430,6 +430,7 @@ int class_device_add(struct class_device *class_dev)
430 sysfs_create_link(&class_dev->kobj, 430 sysfs_create_link(&class_dev->kobj,
431 &class_dev->dev->kobj, "device"); 431 &class_dev->dev->kobj, "device");
432 432
433 kobject_hotplug(&class_dev->kobj, KOBJ_ADD);
433 register_done: 434 register_done:
434 if (error && parent) 435 if (error && parent)
435 class_put(parent); 436 class_put(parent);
@@ -461,6 +462,7 @@ void class_device_del(struct class_device *class_dev)
461 sysfs_remove_link(&class_dev->kobj, "device"); 462 sysfs_remove_link(&class_dev->kobj, "device");
462 class_device_remove_attrs(class_dev); 463 class_device_remove_attrs(class_dev);
463 464
465 kobject_hotplug(&class_dev->kobj, KOBJ_REMOVE);
464 kobject_del(&class_dev->kobj); 466 kobject_del(&class_dev->kobj);
465 467
466 if (parent) 468 if (parent)
diff --git a/drivers/base/core.c b/drivers/base/core.c
index 4e6cce8e6d35..a7cedd8cefe5 100644
--- a/drivers/base/core.c
+++ b/drivers/base/core.c
@@ -260,6 +260,8 @@ int device_add(struct device *dev)
260 /* notify platform of device entry */ 260 /* notify platform of device entry */
261 if (platform_notify) 261 if (platform_notify)
262 platform_notify(dev); 262 platform_notify(dev);
263
264 kobject_hotplug(&dev->kobj, KOBJ_ADD);
263 Done: 265 Done:
264 put_device(dev); 266 put_device(dev);
265 return error; 267 return error;
@@ -349,6 +351,7 @@ void device_del(struct device * dev)
349 platform_notify_remove(dev); 351 platform_notify_remove(dev);
350 bus_remove_device(dev); 352 bus_remove_device(dev);
351 device_pm_remove(dev); 353 device_pm_remove(dev);
354 kobject_hotplug(&dev->kobj, KOBJ_REMOVE);
352 kobject_del(&dev->kobj); 355 kobject_del(&dev->kobj);
353 if (parent) 356 if (parent)
354 put_device(parent); 357 put_device(parent);
diff --git a/drivers/base/firmware_class.c b/drivers/base/firmware_class.c
index 26c9464af80a..97fe13f7f07c 100644
--- a/drivers/base/firmware_class.c
+++ b/drivers/base/firmware_class.c
@@ -102,6 +102,9 @@ firmware_class_hotplug(struct class_device *class_dev, char **envp,
102 if (add_hotplug_env_var(envp, num_envp, &i, buffer, buffer_size, &len, 102 if (add_hotplug_env_var(envp, num_envp, &i, buffer, buffer_size, &len,
103 "FIRMWARE=%s", fw_priv->fw_id)) 103 "FIRMWARE=%s", fw_priv->fw_id))
104 return -ENOMEM; 104 return -ENOMEM;
105 if (add_hotplug_env_var(envp, num_envp, &i, buffer, buffer_size, &len,
106 "TIMEOUT=%i", loading_timeout))
107 return -ENOMEM;
105 108
106 envp[i] = NULL; 109 envp[i] = NULL;
107 110
diff --git a/drivers/base/platform.c b/drivers/base/platform.c
index 996cbb4d5087..cd6453905a9b 100644
--- a/drivers/base/platform.c
+++ b/drivers/base/platform.c
@@ -341,6 +341,7 @@ EXPORT_SYMBOL_GPL(dma_get_required_mask);
341 341
342EXPORT_SYMBOL_GPL(platform_bus); 342EXPORT_SYMBOL_GPL(platform_bus);
343EXPORT_SYMBOL_GPL(platform_bus_type); 343EXPORT_SYMBOL_GPL(platform_bus_type);
344EXPORT_SYMBOL_GPL(platform_add_devices);
344EXPORT_SYMBOL_GPL(platform_device_register); 345EXPORT_SYMBOL_GPL(platform_device_register);
345EXPORT_SYMBOL_GPL(platform_device_register_simple); 346EXPORT_SYMBOL_GPL(platform_device_register_simple);
346EXPORT_SYMBOL_GPL(platform_device_unregister); 347EXPORT_SYMBOL_GPL(platform_device_unregister);
diff --git a/drivers/usb/host/hc_crisv10.c b/drivers/usb/host/hc_crisv10.c
index 4b12be822bd4..376f8a034f65 100644
--- a/drivers/usb/host/hc_crisv10.c
+++ b/drivers/usb/host/hc_crisv10.c
@@ -4396,6 +4396,7 @@ static int __init etrax_usb_hc_init(void)
4396 device_initialize(&fake_device); 4396 device_initialize(&fake_device);
4397 kobject_set_name(&fake_device.kobj, "etrax_usb"); 4397 kobject_set_name(&fake_device.kobj, "etrax_usb");
4398 kobject_add(&fake_device.kobj); 4398 kobject_add(&fake_device.kobj);
4399 kobject_hotplug(&fake_device.kobj, KOBJ_ADD);
4399 hc->bus->controller = &fake_device; 4400 hc->bus->controller = &fake_device;
4400 usb_register_bus(hc->bus); 4401 usb_register_bus(hc->bus);
4401 4402