mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
[MTD] struct device - replace bus_id with dev_name(), dev_set_name()
Acked-by: Greg Kroah-Hartman <[email protected]> Signed-off-by: Kay Sievers <[email protected]> Signed-off-by: David Woodhouse <[email protected]>
This commit is contained in:
parent
504a3e7220
commit
30bbf14067
1 changed files with 1 additions and 1 deletions
|
|
@ -187,7 +187,7 @@ static int ndfc_chip_init(struct ndfc_controller *ndfc,
|
|||
return -ENODEV;
|
||||
|
||||
ndfc->mtd.name = kasprintf(GFP_KERNEL, "%s.%s",
|
||||
ndfc->ofdev->dev.bus_id, flash_np->name);
|
||||
dev_name(&ndfc->ofdev->dev), flash_np->name);
|
||||
if (!ndfc->mtd.name) {
|
||||
ret = -ENOMEM;
|
||||
goto err;
|
||||
|
|
|
|||
Loading…
Reference in a new issue