mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
driver core: remove KOBJ_NAME_LEN define
Kobjects do not have a limit in name size since a while, so stop pretending that they do. Signed-off-by: Kay Sievers <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
f75b1c60fc
commit
aab0de2451
16 changed files with 26 additions and 26 deletions
|
|
@ -401,7 +401,7 @@ void register_disk(struct gendisk *disk)
|
|||
disk->dev.parent = disk->driverfs_dev;
|
||||
disk->dev.devt = MKDEV(disk->major, disk->first_minor);
|
||||
|
||||
strlcpy(disk->dev.bus_id, disk->disk_name, KOBJ_NAME_LEN);
|
||||
strlcpy(disk->dev.bus_id, disk->disk_name, BUS_ID_SIZE);
|
||||
/* ewww... some of these buggers have / in the name... */
|
||||
s = strchr(disk->dev.bus_id, '/');
|
||||
if (s)
|
||||
|
|
|
|||
Loading…
Reference in a new issue