diff options
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; |