Skip to content
Commit 3d7f1945 authored by Michael Polyntsov's avatar Michael Polyntsov Committed by Tom Rini
Browse files

spi: soft_spi: Parse cs-gpios only if num-chipselects is not <0>



Some boards don't have chipselect lines for leds so cs-gpios is not
specified in the dts leading to probing error. Fix it by making
behavior similar to the one in Linux, parse num-chipselects and
if it is zero, ignore cs-gpios.

Signed-off-by: default avatarMichael Polyntsov <michael.polyntsov@iopsys.eu>
Signed-off-by: default avatarMikhail Kshevetskiy <mikhail.kshevetskiy@iopsys.eu>
parent 1d662a64
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment