[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:

committed by
Russell King

parent
099d44e869
commit
d366b64363
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user