diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2005-08-19 04:40:08 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2005-08-19 04:40:08 -0400 |
commit | d366b6436386875b1310ce8f70e3f9dea4647bac (patch) | |
tree | 85db10adf35d9a936701b36642001152e3a9df4a /drivers/mmc/mmci.c | |
parent | 099d44e869f1886b5eb02a5145ca97b5e4142e28 (diff) |
[MMC] Add mmc_hostname() macro
mmc_hostname() returns a pointer to the hostname for the mmc_host.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'drivers/mmc/mmci.c')
-rw-r--r-- | drivers/mmc/mmci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mmc/mmci.c b/drivers/mmc/mmci.c index 7a42966d755b..716c4ef4faf6 100644 --- a/drivers/mmc/mmci.c +++ b/drivers/mmc/mmci.c | |||
@@ -34,7 +34,7 @@ | |||
34 | 34 | ||
35 | #ifdef CONFIG_MMC_DEBUG | 35 | #ifdef CONFIG_MMC_DEBUG |
36 | #define DBG(host,fmt,args...) \ | 36 | #define DBG(host,fmt,args...) \ |
37 | pr_debug("%s: %s: " fmt, host->mmc->host_name, __func__ , args) | 37 | pr_debug("%s: %s: " fmt, mmc_hostname(host->mmc), __func__ , args) |
38 | #else | 38 | #else |
39 | #define DBG(host,fmt,args...) do { } while (0) | 39 | #define DBG(host,fmt,args...) do { } while (0) |
40 | #endif | 40 | #endif |
@@ -541,7 +541,7 @@ static int mmci_probe(struct amba_device *dev, void *id) | |||
541 | mmc_add_host(mmc); | 541 | mmc_add_host(mmc); |
542 | 542 | ||
543 | printk(KERN_INFO "%s: MMCI rev %x cfg %02x at 0x%08lx irq %d,%d\n", | 543 | printk(KERN_INFO "%s: MMCI rev %x cfg %02x at 0x%08lx irq %d,%d\n", |
544 | mmc->host_name, amba_rev(dev), amba_config(dev), | 544 | mmc_hostname(mmc), amba_rev(dev), amba_config(dev), |
545 | dev->res.start, dev->irq[0], dev->irq[1]); | 545 | dev->res.start, dev->irq[0], dev->irq[1]); |
546 | 546 | ||
547 | init_timer(&host->timer); | 547 | init_timer(&host->timer); |