]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - queue-5.1/mtd-maps-allow-mtd_physmap-with-mtd_ram.patch
5.1-stable patches
[thirdparty/kernel/stable-queue.git] / queue-5.1 / mtd-maps-allow-mtd_physmap-with-mtd_ram.patch
CommitLineData
f5edbeaf
GKH
1From d41970097f10d898cef0eb04bf53d786efd6bbbc Mon Sep 17 00:00:00 2001
2From: Chris Packham <chris.packham@alliedtelesis.co.nz>
3Date: Wed, 3 Apr 2019 15:02:40 +1300
4Subject: mtd: maps: Allow MTD_PHYSMAP with MTD_RAM
5
6From: Chris Packham <chris.packham@alliedtelesis.co.nz>
7
8commit d41970097f10d898cef0eb04bf53d786efd6bbbc upstream.
9
10When the physmap_of_core.c code was merged into physmap-core.c the
11ability to use MTD_PHYSMAP_OF with only MTD_RAM selected was lost.
12Restore this by adding MTD_RAM to the dependencies of MTD_PHYSMAP.
13
14Fixes: commit 642b1e8dbed7 ("mtd: maps: Merge physmap_of.c into physmap-core.c")
15Cc: <stable@vger.kernel.org>
16Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
17Reviewed-by: Hamish Martin <hamish.martin@alliedtelesis.co.nz>
18Signed-off-by: Richard Weinberger <richard@nod.at>
19Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
20
21---
22 drivers/mtd/maps/Kconfig | 2 +-
23 1 file changed, 1 insertion(+), 1 deletion(-)
24
25--- a/drivers/mtd/maps/Kconfig
26+++ b/drivers/mtd/maps/Kconfig
27@@ -10,7 +10,7 @@ config MTD_COMPLEX_MAPPINGS
28
29 config MTD_PHYSMAP
30 tristate "Flash device in physical memory map"
31- depends on MTD_CFI || MTD_JEDECPROBE || MTD_ROM || MTD_LPDDR
32+ depends on MTD_CFI || MTD_JEDECPROBE || MTD_ROM || MTD_RAM || MTD_LPDDR
33 help
34 This provides a 'mapping' driver which allows the NOR Flash and
35 ROM driver code to communicate with chips which are mapped