2
0
forked from Ivasoft/openwrt

kernel: mtd: backport extended dynamic partitions support

This gets rid of "nvmem-cells" limitation. Dynamic partitions can be
defined for any (sub)partitions layout.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
(cherry picked from commit 4eda414b09)
This commit is contained in:
Rafał Miłecki
2022-10-18 22:12:27 +02:00
parent 00d7702796
commit 18c77387c5
7 changed files with 154 additions and 5 deletions

View File

@@ -20,7 +20,7 @@ Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
#include <linux/nvmem-provider.h>
#include <linux/mtd/mtd.h>
@@ -767,6 +768,19 @@ int add_mtd_device(struct mtd_info *mtd)
@@ -759,6 +760,19 @@ int add_mtd_device(struct mtd_info *mtd)
of this try_ nonsense, and no bitching about it
either. :) */
__module_get(THIS_MODULE);