9
0
Fork 0

mci: return 0 for probe parameter even when already initialized

This makes the behaviour more friendly to scripts which can now
set the probe parameter without checking if it has been done before.
Having a succesful result now means that there is a card.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2013-01-18 12:37:39 +01:00
parent 6f14250038
commit 1fcdbe3337
1 changed files with 1 additions and 1 deletions

View File

@ -1448,7 +1448,7 @@ static int mci_set_probe(struct device_d *mci_dev, struct param_d *param,
rc = mci_check_if_already_initialized(mci);
if (rc != 0)
return rc;
return 0;
probe = simple_strtoul(val, NULL, 0);
if (probe != 0) {