kernel: backport MTD patch extracing TRX code to separated parser
[openwrt/staging/lynxis.git] / target / linux / generic / patches-4.9 / 430-mtd-add-myloader-partition-parser.patch
index a022564e9e67fbdffe1398f45ac8b5cca2cdd6f5..9bf014e881ad87d823a7a5535a9a84af69440e8f 100644 (file)
@@ -1,8 +1,8 @@
 --- a/drivers/mtd/Kconfig
 +++ b/drivers/mtd/Kconfig
-@@ -174,6 +174,22 @@ config MTD_BCM47XX_PARTS
-         This provides partitions parser for devices based on BCM47xx
-         boards.
+@@ -178,6 +178,22 @@ menu "Partition parsers"
+ source "drivers/mtd/parsers/Kconfig"
+ endmenu
  
 +config MTD_MYLOADER_PARTS
 +      tristate "MyLoader partition parsing"
@@ -30,6 +30,6 @@
  obj-$(CONFIG_MTD_BCM63XX_PARTS)       += bcm63xxpart.o
  obj-$(CONFIG_MTD_BCM47XX_PARTS)       += bcm47xxpart.o
 +obj-$(CONFIG_MTD_MYLOADER_PARTS) += myloader.o
+ obj-y                         += parsers/
  
  # 'Users' - code which presents functionality to userspace.
- obj-$(CONFIG_MTD_BLKDEVS)     += mtd_blkdevs.o