Rebased from upstream / out of band repository.
[librecmc/librecmc.git] / target / linux / ath79 / patches-4.14 / 405-mtd-tp-link-partition-parser.patch
1 --- a/drivers/mtd/Kconfig
2 +++ b/drivers/mtd/Kconfig
3 @@ -194,6 +194,12 @@ config MTD_MYLOADER_PARTS
4           You will still need the parsing functions to be called by the driver
5           for your particular device. It won't happen automatically.
6  
7 +config MTD_TPLINK_PARTS
8 +       tristate "TP-Link AR7XXX/AR9XXX partitioning support"
9 +       depends on ATH79
10 +       ---help---
11 +         TBD.
12 +
13  comment "User Modules And Translation Layers"
14  
15  #
16 --- a/drivers/mtd/Makefile
17 +++ b/drivers/mtd/Makefile
18 @@ -18,6 +18,7 @@ obj-$(CONFIG_MTD_BCM63XX_PARTS)       += bcm63
19  obj-$(CONFIG_MTD_BCM47XX_PARTS)        += bcm47xxpart.o
20  obj-$(CONFIG_MTD_MYLOADER_PARTS) += myloader.o
21  obj-y                          += parsers/
22 +obj-$(CONFIG_MTD_TPLINK_PARTS) += tplinkpart.o
23  
24  # 'Users' - code which presents functionality to userspace.
25  obj-$(CONFIG_MTD_BLKDEVS)      += mtd_blkdevs.o