Skip to content

Commit

Permalink
i2c: bcm2835: Linking platform nodes to adapter nodes
Browse files Browse the repository at this point in the history
In order to find I2C devices in the device tree, the platform nodes
have to be known by the I2C core. This requires setting the
dev.of_node parameter of the adapter.

Signed-off-by: Florian Meier <[email protected]>
Tested-by: Stephen Warren <[email protected]>
Signed-off-by: Wolfram Sang <[email protected]>
  • Loading branch information
koalo authored and Wolfram Sang committed Nov 28, 2013
1 parent 40b13ca commit 07a27a0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/i2c/busses/i2c-bcm2835.c
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@ static int bcm2835_i2c_probe(struct platform_device *pdev)
strlcpy(adap->name, "bcm2835 I2C adapter", sizeof(adap->name));
adap->algo = &bcm2835_i2c_algo;
adap->dev.parent = &pdev->dev;
adap->dev.of_node = pdev->dev.of_node;

bcm2835_i2c_writel(i2c_dev, BCM2835_I2C_C, 0);

Expand Down

0 comments on commit 07a27a0

Please sign in to comment.