Skip to content
Commit f15480e9 authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Dominik Brodowski
Browse files

pcmcia/electra_cf: Fix some return values in 'electra_cf_probe()' in case of error



'status' is known to be 0 at this point. It must be set to a meaningful
value in order to return an error code if one of the 'of_get_property()'
call fails.

Return -EINVAL in such a case.

Fixes: 2b571a06("pcmcia: CompactFlash driver for PA Semi Electra boards")
Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: default avatarOlof Johansson <olof@lixom.net>
Signed-off-by: default avatarDominik Brodowski <linux@dominikbrodowski.net>
parent b3298500
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment