Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7d242722 authored by Frans Klaver's avatar Frans Klaver Committed by Brian Norris
Browse files

mtd: devices: spear_smi: show parent device in sysfs



Fix a bug where mtd parent device symlinks aren't shown in sysfs.

Signed-off-by: default avatarFrans Klaver <fransklaver@gmail.com>
Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
parent 57eea0f5
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -854,6 +854,7 @@ static int spear_smi_setup_banks(struct platform_device *pdev,
	else
		flash->mtd.name = flash_devices[flash_index].name;

	flash->mtd.dev.parent = &pdev->dev;
	flash->mtd.type = MTD_NORFLASH;
	flash->mtd.writesize = 1;
	flash->mtd.flags = MTD_CAP_NORFLASH;