diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2013-01-18 12:37:39 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-01-20 10:52:04 +0100 |
commit | 1fcdbe3337e5fa059631f16ab41b0016cc86788d (patch) | |
tree | 213cab5129823fb5fb389cc0db5c3fbebe07962a /drivers/mci/mci-core.c | |
parent | 6f142500387365a3b8a4331c2540b7aa2a9bf9b6 (diff) | |
download | barebox-1fcdbe3337e5fa059631f16ab41b0016cc86788d.tar.gz barebox-1fcdbe3337e5fa059631f16ab41b0016cc86788d.tar.xz |
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>
Diffstat (limited to 'drivers/mci/mci-core.c')
-rw-r--r-- | drivers/mci/mci-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mci/mci-core.c b/drivers/mci/mci-core.c index 559f8abc9a..711f74b259 100644 --- a/drivers/mci/mci-core.c +++ b/drivers/mci/mci-core.c @@ -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) { |