[PATCH] mci: core: Check return value of dev_add_param_bool
Sascha Hauer
s.hauer at pengutronix.de
Wed Mar 18 23:52:39 PDT 2015
On Wed, Mar 18, 2015 at 03:13:42PM +0100, Wadim Egorov wrote:
> Commit 03b59bdb64e83ebcdb9111681775117ebce0e03b changed the
> return values of dev_add_param_* to ERR_PTR(-ENOSYS) and broke a few boards.
> We have now to care about the return value of dev_add_param_bool() in
> mci_register().
>
> Also set the ret variable when dev_add_param_bool() fails.
>
> Signed-off-by: Wadim Egorov <w.egorov at phytec.de>
> ---
> drivers/mci/mci-core.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
Applied, thanks
Sascha
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
More information about the barebox
mailing list