summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/wl3501_cs.c
diff options
context:
space:
mode:
authorJavier Martinez Canillas <javier@osg.samsung.com>2016-05-27 17:18:22 +0300
committerKalle Valo <kvalo@codeaurora.org>2016-06-16 18:05:09 +0300
commit5e94913f676af0dddeb6e0f3de241de5bd92f3f1 (patch)
tree5d35933b7b4e8b7908bc9b18099201e53fdf9f0a /drivers/net/wireless/wl3501_cs.c
parent806dd220340d404857c2f1b8f4bd9f9f1f052d80 (diff)
downloadlinux-5e94913f676af0dddeb6e0f3de241de5bd92f3f1.tar.xz
mwifiex: use better message and error code when OF node doesn't match
The Documentation/devicetree/bindings/net/wireless/marvell-sd8xxx.txt DT binding document lists the possible compatible strings that a SDIO child node can have, so the driver checks if the defined in the node matches. But the error message when that's not the case is misleading, so change for one that makes clear what the error really is. Also, returning a -1 as errno code is not correct since that's -EPERM. A -EINVAL seems to be a more appropriate one. Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com> Reviewed-by: Julian Calaby <julian.calaby@gmail.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/wl3501_cs.c')
0 files changed, 0 insertions, 0 deletions