kernel: add support for kernel 5.4
[openwrt/openwrt.git] / target / linux / generic / pending-5.4 / 419-mtd-redboot-add-of_match_table-with-DT-binding.patch
1 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
2 Subject: [PATCH] mtd: redboot: add of_match_table with DT binding
3 MIME-Version: 1.0
4 Content-Type: text/plain; charset=UTF-8
5 Content-Transfer-Encoding: 8bit
6
7 This allows parsing RedBoot compatible partitions for properly described
8 flash device in DT.
9
10 Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
11 ---
12
13 --- a/drivers/mtd/parsers/redboot.c
14 +++ b/drivers/mtd/parsers/redboot.c
15 @@ -300,6 +300,7 @@ static int parse_redboot_partitions(stru
16
17 static const struct of_device_id mtd_parser_redboot_of_match_table[] = {
18 { .compatible = "redboot-fis" },
19 + { .compatible = "ecoscentric,redboot-fis-partitions" },
20 {},
21 };
22 MODULE_DEVICE_TABLE(of, mtd_parser_redboot_of_match_table);