mtd: Pass device_id to add_mtd_device
Right now we do not support persistent names for mtd devices. The
base name can be passed to add_mtd_device, but this is always appended
with a dynamic number. With this patch add_mtd_device takes a device_id
argument which can be used to create a mtd device with an exact name.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 865bab0 commit d317b1bf8500dc67adfb5903119fef28adb4b4c1
@Sascha Hauer Sascha Hauer authored on 28 Oct 2013
Showing 7 changed files
View
drivers/mtd/core.c
View
drivers/mtd/devices/docg3.c
View
drivers/mtd/devices/m25p80.c
View
drivers/mtd/devices/mtd_dataflash.c
View
drivers/mtd/nand/nand_base.c
View
drivers/mtd/nor/cfi_flash.c
View
include/linux/mtd/mtd.h