Skip to content

Commit

Permalink
spi: dw: Initialize of_node to discover DT node children
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Thor Thayer authored and Mark Brown committed Oct 8, 2014
1 parent a2285b8 commit 9c6de47
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/spi/spi-dw.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9c6de47

Please sign in to comment.