diff options
Diffstat (limited to 'drivers/s390/s390_rdev.c')
-rw-r--r-- | drivers/s390/s390_rdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/s390_rdev.c b/drivers/s390/s390_rdev.c index 3c7145d9f9a1..64371c05a3b3 100644 --- a/drivers/s390/s390_rdev.c +++ b/drivers/s390/s390_rdev.c | |||
@@ -30,7 +30,7 @@ s390_root_dev_register(const char *name) | |||
30 | dev = kzalloc(sizeof(struct device), GFP_KERNEL); | 30 | dev = kzalloc(sizeof(struct device), GFP_KERNEL); |
31 | if (!dev) | 31 | if (!dev) |
32 | return ERR_PTR(-ENOMEM); | 32 | return ERR_PTR(-ENOMEM); |
33 | strncpy(dev->bus_id, name, min(strlen(name), (size_t)BUS_ID_SIZE)); | 33 | dev_set_name(dev, name); |
34 | dev->release = s390_root_dev_release; | 34 | dev->release = s390_root_dev_release; |
35 | ret = device_register(dev); | 35 | ret = device_register(dev); |
36 | if (ret) { | 36 | if (ret) { |