diff options
Diffstat (limited to 'net/atm/atm_sysfs.c')
-rw-r--r-- | net/atm/atm_sysfs.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/net/atm/atm_sysfs.c b/net/atm/atm_sysfs.c index f094a0879c16..9ef07eda2c43 100644 --- a/net/atm/atm_sysfs.c +++ b/net/atm/atm_sysfs.c | |||
@@ -105,10 +105,9 @@ static struct class_device_attribute *atm_attrs[] = { | |||
105 | NULL | 105 | NULL |
106 | }; | 106 | }; |
107 | 107 | ||
108 | static int atm_uevent(struct class_device *cdev, char **envp, int num_envp, char *buf, int size) | 108 | static int atm_uevent(struct class_device *cdev, struct kobj_uevent_env *env) |
109 | { | 109 | { |
110 | struct atm_dev *adev; | 110 | struct atm_dev *adev; |
111 | int i = 0, len = 0; | ||
112 | 111 | ||
113 | if (!cdev) | 112 | if (!cdev) |
114 | return -ENODEV; | 113 | return -ENODEV; |
@@ -117,11 +116,9 @@ static int atm_uevent(struct class_device *cdev, char **envp, int num_envp, char | |||
117 | if (!adev) | 116 | if (!adev) |
118 | return -ENODEV; | 117 | return -ENODEV; |
119 | 118 | ||
120 | if (add_uevent_var(envp, num_envp, &i, buf, size, &len, | 119 | if (add_uevent_var(env, "NAME=%s%d", adev->type, adev->number)) |
121 | "NAME=%s%d", adev->type, adev->number)) | ||
122 | return -ENOMEM; | 120 | return -ENOMEM; |
123 | 121 | ||
124 | envp[i] = NULL; | ||
125 | return 0; | 122 | return 0; |
126 | } | 123 | } |
127 | 124 | ||