diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2013-07-16 14:38:05 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-07-18 13:54:34 +0200 |
commit | da6c4b21a856139b709e466823e4e6ccaf5e195b (patch) | |
tree | 2c2297dac08f607fb8b6f436385ff4e5e7f48b1c /drivers/mci/mci-core.c | |
parent | 309504327491b2f72c7b870d881f15c62fd95ed5 (diff) | |
download | barebox-da6c4b21a856139b709e466823e4e6ccaf5e195b.tar.gz barebox-da6c4b21a856139b709e466823e4e6ccaf5e195b.tar.xz |
mci: Add devicetree partition parsing
MMC/SD cards normally have a DOS/GPT partition table, but sometimes
barebox uses the unpartitioned area to store its environment. Add
devicetree partition parsing also for SD/MMC cards so that we have
a way to describe the partition in the devicetree.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/mci/mci-core.c')
-rw-r--r-- | drivers/mci/mci-core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mci/mci-core.c b/drivers/mci/mci-core.c index 02e6216caf..66ddb5b4ff 100644 --- a/drivers/mci/mci-core.c +++ b/drivers/mci/mci-core.c @@ -1558,6 +1558,7 @@ static int mci_card_probe(struct mci *mci) dev_warn(&mci->dev, "No partition table found\n"); rc = 0; /* it's not a failure */ } + of_parse_partitions(&part->blk.cdev, host->hw_dev->device_node); } if (IS_ENABLED(CONFIG_MCI_MMC_BOOT_PARTITIONS) && |