diff options
author | Kay Sievers <kay.sievers@suse.de> | 2006-08-13 00:17:09 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-09-26 00:08:36 -0400 |
commit | d81d9d6b9f7d0af7d4341951d48d296681878f7a (patch) | |
tree | fab4e755eed72f0bbc3e21ef31e5ba299e58cbe2 /drivers/base/core.c | |
parent | 6d99eb33f55879bc71ddba077e09cf8a61129707 (diff) |
deprecate PHYSDEV* keys
deprecate PHYSDEV* values in the uevent environment
These values are no longer needed and inconsistent with the
stacking of class devices. The event environment should not
carry properties of a parent device. The key PHYSDEVDRIVER is
available as DRIVER, PHYDEVBUS is indentical SUBSYSTEM. Class
devices should not carry any of these values.
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/base/core.c')
-rw-r--r-- | drivers/base/core.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/drivers/base/core.c b/drivers/base/core.c index be6b5bc0677d..04d089fd4f76 100644 --- a/drivers/base/core.c +++ b/drivers/base/core.c | |||
@@ -149,17 +149,21 @@ static int dev_uevent(struct kset *kset, struct kobject *kobj, char **envp, | |||
149 | "MINOR=%u", MINOR(dev->devt)); | 149 | "MINOR=%u", MINOR(dev->devt)); |
150 | } | 150 | } |
151 | 151 | ||
152 | /* add bus name of physical device */ | 152 | /* add bus name (same as SUBSYSTEM, deprecated) */ |
153 | if (dev->bus) | 153 | if (dev->bus) |
154 | add_uevent_var(envp, num_envp, &i, | 154 | add_uevent_var(envp, num_envp, &i, |
155 | buffer, buffer_size, &length, | 155 | buffer, buffer_size, &length, |
156 | "PHYSDEVBUS=%s", dev->bus->name); | 156 | "PHYSDEVBUS=%s", dev->bus->name); |
157 | 157 | ||
158 | /* add driver name of physical device */ | 158 | /* add driver name (PHYSDEV* values are deprecated)*/ |
159 | if (dev->driver) | 159 | if (dev->driver) { |
160 | add_uevent_var(envp, num_envp, &i, | ||
161 | buffer, buffer_size, &length, | ||
162 | "DRIVER=%s", dev->driver->name); | ||
160 | add_uevent_var(envp, num_envp, &i, | 163 | add_uevent_var(envp, num_envp, &i, |
161 | buffer, buffer_size, &length, | 164 | buffer, buffer_size, &length, |
162 | "PHYSDEVDRIVER=%s", dev->driver->name); | 165 | "PHYSDEVDRIVER=%s", dev->driver->name); |
166 | } | ||
163 | 167 | ||
164 | /* terminate, set to next free slot, shrink available space */ | 168 | /* terminate, set to next free slot, shrink available space */ |
165 | envp[i] = NULL; | 169 | envp[i] = NULL; |