mci: set name of mci device to same name as the filename
We already have the possibility to register a mci with a certain filename to get persistent names. However, the device needed to find the probe parameter still has the name 'mcix'. This patch changes this by registering the mci device with the same name as the filename. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
895c0bee6e
commit
abee214ba5
|
@ -1609,8 +1609,14 @@ int mci_register(struct mci_host *host)
|
|||
mci = xzalloc(sizeof(*mci));
|
||||
mci->host = host;
|
||||
|
||||
strcpy(mci->dev.name, "mci");
|
||||
mci->dev.id = DEVICE_ID_DYNAMIC;
|
||||
if (host->devname) {
|
||||
strcpy(mci->dev.name, host->devname);
|
||||
mci->dev.id = DEVICE_ID_SINGLE;
|
||||
} else {
|
||||
strcpy(mci->dev.name, "mci");
|
||||
mci->dev.id = DEVICE_ID_DYNAMIC;
|
||||
}
|
||||
|
||||
mci->dev.platform_data = host;
|
||||
mci->dev.parent = host->hw_dev;
|
||||
|
||||
|
|
Loading…
Reference in New Issue