diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-04 21:44:12 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-04 21:44:12 -0500 |
commit | db9edfd7e339ca4113153d887e782dd05be5a9eb (patch) | |
tree | 0a4ba12447a0cabc800adc7e9667d284777b0181 /drivers/infiniband | |
parent | 631b034724364b413e8a52e7c2e03a9d77e4c2b4 (diff) | |
parent | fd586bacf439f36dea9b9bf6e6133ac87df2730c (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-2.6
Trivial manual merge fixup for usb_find_interface clashes.
Diffstat (limited to 'drivers/infiniband')
-rw-r--r-- | drivers/infiniband/core/sysfs.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/infiniband/core/sysfs.c b/drivers/infiniband/core/sysfs.c index 08648b1a387e..1f1743c5c9a3 100644 --- a/drivers/infiniband/core/sysfs.c +++ b/drivers/infiniband/core/sysfs.c | |||
@@ -434,24 +434,24 @@ static void ib_device_release(struct class_device *cdev) | |||
434 | kfree(dev); | 434 | kfree(dev); |
435 | } | 435 | } |
436 | 436 | ||
437 | static int ib_device_hotplug(struct class_device *cdev, char **envp, | 437 | static int ib_device_uevent(struct class_device *cdev, char **envp, |
438 | int num_envp, char *buf, int size) | 438 | int num_envp, char *buf, int size) |
439 | { | 439 | { |
440 | struct ib_device *dev = container_of(cdev, struct ib_device, class_dev); | 440 | struct ib_device *dev = container_of(cdev, struct ib_device, class_dev); |
441 | int i = 0, len = 0; | 441 | int i = 0, len = 0; |
442 | 442 | ||
443 | if (add_hotplug_env_var(envp, num_envp, &i, buf, size, &len, | 443 | if (add_uevent_var(envp, num_envp, &i, buf, size, &len, |
444 | "NAME=%s", dev->name)) | 444 | "NAME=%s", dev->name)) |
445 | return -ENOMEM; | 445 | return -ENOMEM; |
446 | 446 | ||
447 | /* | 447 | /* |
448 | * It might be nice to pass the node GUID to hotplug, but | 448 | * It might be nice to pass the node GUID with the event, but |
449 | * right now the only way to get it is to query the device | 449 | * right now the only way to get it is to query the device |
450 | * provider, and this can crash during device removal because | 450 | * provider, and this can crash during device removal because |
451 | * we are will be running after driver removal has started. | 451 | * we are will be running after driver removal has started. |
452 | * We could add a node_guid field to struct ib_device, or we | 452 | * We could add a node_guid field to struct ib_device, or we |
453 | * could just let the hotplug script read the node GUID from | 453 | * could just let userspace read the node GUID from sysfs when |
454 | * sysfs when devices are added. | 454 | * devices are added. |
455 | */ | 455 | */ |
456 | 456 | ||
457 | envp[i] = NULL; | 457 | envp[i] = NULL; |
@@ -653,7 +653,7 @@ static struct class_device_attribute *ib_class_attributes[] = { | |||
653 | static struct class ib_class = { | 653 | static struct class ib_class = { |
654 | .name = "infiniband", | 654 | .name = "infiniband", |
655 | .release = ib_device_release, | 655 | .release = ib_device_release, |
656 | .hotplug = ib_device_hotplug, | 656 | .uevent = ib_device_uevent, |
657 | }; | 657 | }; |
658 | 658 | ||
659 | int ib_device_register_sysfs(struct ib_device *device) | 659 | int ib_device_register_sysfs(struct ib_device *device) |