projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
drm/rockchip: rga: fix potential buffer overflow
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
spi
/
spi-atmel.c
diff --git
a/drivers/spi/spi-atmel.c
b/drivers/spi/spi-atmel.c
index aebad36391c93b36658c52222e761366c111216f..8feac599e9ab4bfe886b8da89960f04ed32c1aba 100644
(file)
--- a/
drivers/spi/spi-atmel.c
+++ b/
drivers/spi/spi-atmel.c
@@
-1571,6
+1571,7
@@
static int atmel_spi_probe(struct platform_device *pdev)
as->use_cs_gpios = true;
if (atmel_spi_is_v2(as) &&
+ pdev->dev.of_node &&
!of_get_property(pdev->dev.of_node, "cs-gpios", NULL)) {
as->use_cs_gpios = false;
master->num_chipselect = 4;