]> git.dujemihanovic.xyz Git - u-boot.git/commit
spi: atmel: check GPIO validity before using cs_gpios
authorWenyou Yang <wenyou.yang@atmel.com>
Fri, 7 Apr 2017 07:14:46 +0000 (15:14 +0800)
committerJagan Teki <jagan@openedev.com>
Wed, 3 May 2017 05:28:54 +0000 (10:58 +0530)
commit61a77ce1d5a63856328605822b69d8abaeb7f593
tree4ac42b106522012525b85e9b210ed2bd0380e5fd
parenta63d800196ebee59b0f8ff924f67843cd597a8c1
spi: atmel: check GPIO validity before using cs_gpios

Before using the cs_gpio, check if the GPIO is valid or not.

Signed-off-by: Wenyou Yang <wenyou.yang@atmel.com>
Reviewed-by: Jagan Teki <jagan@openedev.com>
drivers/spi/atmel_spi.c