diff options
author | Andi Shyti <andi.shyti@samsung.com> | 2017-02-09 21:20:19 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-03-12 00:41:41 -0500 |
commit | 404950add4ce0bfb95346a8233f5daba7fad8a54 (patch) | |
tree | 6a74e136a029abb0b1ced41f5f7b8297b679de00 /drivers/spi/spi-s3c64xx.c | |
parent | da1e40237f8f3516581b534c484c236a79ccfd14 (diff) |
spi: s3c64xx: fix inconsistency between binding and driver
commit 379f831a927817c130a62e3ca0082ae685557324 upstream.
Commit a92e7c3d82a1 ("spi: s3c64xx: consider the case when the CS
line is not connected") introduced an inconsistency between the
binding, where the disconnected CS line was marked as
'no-cs-readback', and the driver.
The driver is erroneously checking for that attribute with
property name of 'broken-cs'.
Check for 'no-cs-readback' in the driver as well.
Fixes: a92e7c3d82a1 ("spi: s3c64xx: consider the case when the CS line is not connected")
Signed-off-by: Andi Shyti <andi.shyti@samsung.com>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/spi/spi-s3c64xx.c')
-rw-r--r-- | drivers/spi/spi-s3c64xx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c index 3c09e94cf827..186342b74141 100644 --- a/drivers/spi/spi-s3c64xx.c +++ b/drivers/spi/spi-s3c64xx.c | |||
@@ -1003,7 +1003,7 @@ static struct s3c64xx_spi_info *s3c64xx_spi_parse_dt(struct device *dev) | |||
1003 | sci->num_cs = temp; | 1003 | sci->num_cs = temp; |
1004 | } | 1004 | } |
1005 | 1005 | ||
1006 | sci->no_cs = of_property_read_bool(dev->of_node, "broken-cs"); | 1006 | sci->no_cs = of_property_read_bool(dev->of_node, "no-cs-readback"); |
1007 | 1007 | ||
1008 | return sci; | 1008 | return sci; |
1009 | } | 1009 | } |