[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>
This commit is contained in:
Russell King
2005-08-19 09:40:08 +01:00
committed by Russell King
parent 099d44e869
commit d366b64363
5 changed files with 8 additions and 7 deletions

View File

@@ -206,7 +206,7 @@ void mmc_init_card(struct mmc_card *card, struct mmc_host *host)
int mmc_register_card(struct mmc_card *card)
{
snprintf(card->dev.bus_id, sizeof(card->dev.bus_id),
"%s:%04x", card->host->host_name, card->rca);
"%s:%04x", mmc_hostname(card->host), card->rca);
return device_add(&card->dev);
}