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:
parent
6f14250038
commit
1fcdbe3337
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue