]> Git Repo - u-boot.git/commit
dfu: mtd: remove direct call of mtdparts_init function
authorPatrick Delaunay <[email protected]>
Thu, 8 Jun 2023 15:16:39 +0000 (17:16 +0200)
committerPatrice Chotard <[email protected]>
Fri, 16 Jun 2023 09:01:16 +0000 (11:01 +0200)
commit28d3439f1b343f1299c8e92a673ceca2d9296baa
tree9468c0c2caa8ba9bd7faecaa089457dfd5916856
parent163c5f60ebb492eb3bab75e299cb43e6d022653d
dfu: mtd: remove direct call of mtdparts_init function

With MTD support in driver model, the direct call of mtdparts_init
should be avoided and replaced by mtd_probe_devices.

With the modificaton when MTDIDS/MTDPARTS are empty the OF fallback
with partition describe in device tree is correctly performed,
introduced by commit dc339bf784f0 ("mtd: add support for parsing
partitions defined in OF").
With this patch the dependency with CONFIG_CMD_MTDPARTS is removed.

Signed-off-by: Patrick Delaunay <[email protected]>
Reviewed-by: Patrice Chotard <[email protected]>
drivers/dfu/Kconfig
drivers/dfu/dfu_mtd.c
This page took 0.034998 seconds and 4 git commands to generate.