projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a2285b8
)
spi: dw: Initialize of_node to discover DT node children
author
Thor Thayer
<tthayer@opensource.altera.com>
Wed, 8 Oct 2014 18:51:34 +0000
(13:51 -0500)
committer
Mark Brown
<broonie@kernel.org>
Wed, 8 Oct 2014 20:12:47 +0000
(21:12 +0100)
The of_node element must be initialized to enable discovery of node
children which takes place in the of_register_spi_devices() function.
Signed-off-by: Thor Thayer <tthayer@opensource.altera.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-dw.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/spi/spi-dw.c
b/drivers/spi/spi-dw.c
index 72921588525008a0f4eaf615980eb884b8614108..72e12bad14b9c478a8025db3ef7d31601c083aa4 100644
(file)
--- a/
drivers/spi/spi-dw.c
+++ b/
drivers/spi/spi-dw.c
@@
-669,6
+669,7
@@
int dw_spi_add_host(struct device *dev, struct dw_spi *dws)
master->cleanup = dw_spi_cleanup;
master->transfer_one_message = dw_spi_transfer_one_message;
master->max_speed_hz = dws->max_freq;
+ master->dev.of_node = dev->of_node;
/* Basic HW init */
spi_hw_init(dws);