diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2008-11-10 16:55:14 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-11-10 16:55:14 -0500 |
commit | fb28ad35906af2f042c94e2f9c0f898ef9acfa37 (patch) | |
tree | ee3d535ab38d680b424a857406789f8c28bf5266 /net/atm | |
parent | 23779897546c1effb546ff89b89803d9d955d517 (diff) |
net: struct device - replace bus_id with dev_name(), dev_set_name()
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/atm')
-rw-r--r-- | net/atm/atm_sysfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/atm/atm_sysfs.c b/net/atm/atm_sysfs.c index 1b88311f2130..b5674dc2083d 100644 --- a/net/atm/atm_sysfs.c +++ b/net/atm/atm_sysfs.c | |||
@@ -149,7 +149,7 @@ int atm_register_sysfs(struct atm_dev *adev) | |||
149 | cdev->class = &atm_class; | 149 | cdev->class = &atm_class; |
150 | dev_set_drvdata(cdev, adev); | 150 | dev_set_drvdata(cdev, adev); |
151 | 151 | ||
152 | snprintf(cdev->bus_id, BUS_ID_SIZE, "%s%d", adev->type, adev->number); | 152 | dev_set_name(cdev, "%s%d", adev->type, adev->number); |
153 | err = device_register(cdev); | 153 | err = device_register(cdev); |
154 | if (err < 0) | 154 | if (err < 0) |
155 | return err; | 155 | return err; |