spi: dw: Initialize of_node to discover DT node children
PATCH v2 1/1 spi: dw: Initialize of_node to discover DT node children
From: Thor Thayer <[email protected]>
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 <[email protected]>
---
v2: Remove #ifdef (CONFIG_OF). Remove other files.
--- drivers/spi/spi-dw.c | 1 + 1 file changed, 1 insertion(+)
drivers/spi/spi-dw.c +1 -0
@@ -671,6 +671,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);
Signature · 6 lines
1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): 1412794294-31248-1-git-send-email-tthayer-yzvPICuk2ABMcg4IHK0kFoH6Mc4MB0Vx@public.gmane.org
Mark Brown
AppliedQuoted 4 lines · On Wed, Oct 08, 2014 at 01:51:34PM -0500…
From: Thor Thayer <[email protected]>
The
of_nodeelement must be initialized to enable discovery of node children which takes place in theof_register_spi_devices()function.
Applied, thanks.