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/mmc_sysfs.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/mmc_sysfs.c')
-rw-r--r-- | drivers/mmc/mmc_sysfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/mmc_sysfs.c b/drivers/mmc/mmc_sysfs.c index 5556cd3b5559..3a6b325a9149 100644 --- a/drivers/mmc/mmc_sysfs.c +++ b/drivers/mmc/mmc_sysfs.c | |||
@@ -206,7 +206,7 @@ void mmc_init_card(struct mmc_card *card, struct mmc_host *host) | |||
206 | int mmc_register_card(struct mmc_card *card) | 206 | int mmc_register_card(struct mmc_card *card) |
207 | { | 207 | { |
208 | snprintf(card->dev.bus_id, sizeof(card->dev.bus_id), | 208 | snprintf(card->dev.bus_id, sizeof(card->dev.bus_id), |
209 | "%s:%04x", card->host->host_name, card->rca); | 209 | "%s:%04x", mmc_hostname(card->host), card->rca); |
210 | 210 | ||
211 | return device_add(&card->dev); | 211 | return device_add(&card->dev); |
212 | } | 212 | } |