diff --git a/examples/media/Kconfig b/examples/media/Kconfig index 8a44cee26dd..84210ce3236 100644 --- a/examples/media/Kconfig +++ b/examples/media/Kconfig @@ -24,7 +24,7 @@ config EXAMPLES_MEDIA MTD drivers need an additional wrapper layer, the FTL wrapper must first be used to convert the MTD driver to a block device: - int ret = ftl_initialize(, mtd); + int ret = ftl_initialize(/dev/mtdblock, mtd); ret = bchdev_register(/dev/mtdblock, , false); @@ -45,7 +45,7 @@ config EXAMPLES_MEDIA_DEVPATH MTD drivers need an additional wrapper layer, the FTL wrapper must first be used to convert the MTD driver to a block device: - int ret = ftl_initialize(, mtd); + int ret = ftl_initialize(/dev/mtdblock, mtd); ret = bchdev_register(/dev/mtdblock, , false); diff --git a/examples/mtdrwb/mtdrwb_main.c b/examples/mtdrwb/mtdrwb_main.c index 1ebbe44f5b3..2c6388f95ae 100644 --- a/examples/mtdrwb/mtdrwb_main.c +++ b/examples/mtdrwb/mtdrwb_main.c @@ -180,7 +180,7 @@ int main(int argc, FAR char *argv[]) * interesting. */ - ret = ftl_initialize(0, mtdrwb); + ret = ftl_initialize("/dev/mtdblock0", mtdrwb, 0); if (ret < 0) { printf("ERROR: ftl_initialize /dev/mtdblock0 failed: %d\n", ret);