diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2017-03-30 16:21:55 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2017-03-31 18:43:24 +0200 |
commit | 0d0cee17298576daa35f6d15a53944d36a3b7c4e (patch) | |
tree | f5a19dee68d340294cda2218e244e87509619c53 /drivers/mci | |
parent | 617192a1053a6614c2ad09054e5ee4f517f02308 (diff) | |
download | barebox-0d0cee17298576daa35f6d15a53944d36a3b7c4e.tar.gz barebox-0d0cee17298576daa35f6d15a53944d36a3b7c4e.tar.xz |
of: partition: Register the of partition fixup for of partition users
at24, at25 and mci core are using of_parse_partitions(). Register the
fixup for them aswell.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/mci')
-rw-r--r-- | drivers/mci/mci-core.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/mci/mci-core.c b/drivers/mci/mci-core.c index 055a5e2b06..6ad0f48ec3 100644 --- a/drivers/mci/mci-core.c +++ b/drivers/mci/mci-core.c @@ -1621,8 +1621,10 @@ static int mci_register_partition(struct mci_part *part) rc = 0; /* it's not a failure */ } - if (np) + if (np) { of_parse_partitions(&part->blk.cdev, np); + of_partitions_register_fixup(&part->blk.cdev); + } return 0; } |