OpenWrt – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 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/redboot.c |
||
14 | +++ b/drivers/mtd/redboot.c |
||
15 | @@ -289,9 +289,16 @@ static int parse_redboot_partitions(stru |
||
16 | return ret; |
||
17 | } |
||
18 | |||
19 | +static const struct of_device_id redboot_parser_of_match_table[] = { |
||
20 | + { .compatible = "ecoscentric,redboot-fis-partitions" }, |
||
21 | + {}, |
||
22 | +}; |
||
23 | +MODULE_DEVICE_TABLE(of, redboot_parser_of_match_table); |
||
24 | + |
||
25 | static struct mtd_part_parser redboot_parser = { |
||
26 | .parse_fn = parse_redboot_partitions, |
||
27 | .name = "RedBoot", |
||
28 | + .of_match_table = redboot_parser_of_match_table, |
||
29 | }; |
||
30 | module_mtd_part_parser(redboot_parser); |
||
31 |