[PATCH 15/15] mci: Be more verbose on what device is associated to which disk
Sascha Hauer
s.hauer at pengutronix.de
Thu Feb 9 06:53:58 EST 2012
This is quite useful when multiple SD cards are present so spare
some bytes to print this information.
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
drivers/mci/mci-core.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/drivers/mci/mci-core.c b/drivers/mci/mci-core.c
index c39faf3..17a6656 100644
--- a/drivers/mci/mci-core.c
+++ b/drivers/mci/mci-core.c
@@ -1300,6 +1300,8 @@ static int mci_card_probe(struct mci *mci)
goto on_error;
}
+ dev_info(mci->mci_dev, "registered disk%d\n", rc);
+
/* create partitions on demand */
rc = parse_partition_table(&mci->blk);
if (rc != 0) {
@@ -1382,6 +1384,8 @@ static int mci_probe(struct device_d *mci_dev)
mci->mci_dev = mci_dev;
mci->host = mci_dev->platform_data;
+ dev_info(mci->host->hw_dev, "registered as %s\n", dev_name(mci_dev));
+
#ifdef CONFIG_MCI_STARTUP
/* if enabled, probe the attached card immediately */
rc = mci_card_probe(mci);
--
1.7.9
More information about the barebox
mailing list