From: Andreas Larsson Date: Wed, 13 Feb 2013 13:20:25 +0000 (+0100) Subject: spi: Initialize cs_gpio and cs_gpios with -ENOENT X-Git-Tag: v3.10-rc2~35^2^2^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=446411e18b2cb17d153e45f634a3c9a79ada3ac2;p=pandora-kernel.git spi: Initialize cs_gpio and cs_gpios with -ENOENT The return value from of_get_named_gpio is -ENOENT when the given index matches a hole in the "cs-gpios" property phandle list. However, the default value of cs_gpio in struct spi_device and entries of cs_gpios in struct spi_master is -EINVAL, which is documented to indicate that a GPIO line should not be used for the given spi_device. This sets the default value of cs_gpio in struct spi_device and entries of cs_gpios in struct spi_master to -ENOENT. Thus, -ENOENT is the only value used to indicate that no GPIO line should be used. Signed-off-by: Andreas Larsson Signed-off-by: Grant Likely --- Reading git-diff-tree failed