Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 349060
b: refs/heads/master
c: bfd059d
h: refs/heads/master
v: v3
  • Loading branch information
Barry Song authored and Wolfram Sang committed Jan 22, 2013
1 parent 92abde4 commit c8633f5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0f40cbc4f85e13b1a42ae2f41231645a14965872
refs/heads/master: bfd059da9503e0091541285cb0481f66b95c0296
4 changes: 4 additions & 0 deletions trunk/drivers/i2c/busses/i2c-sirf.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include <linux/slab.h>
#include <linux/platform_device.h>
#include <linux/i2c.h>
#include <linux/of_i2c.h>
#include <linux/clk.h>
#include <linux/err.h>
#include <linux/io.h>
Expand Down Expand Up @@ -328,6 +329,7 @@ static int i2c_sirfsoc_probe(struct platform_device *pdev)
adap->algo = &i2c_sirfsoc_algo;
adap->algo_data = siic;

adap->dev.of_node = pdev->dev.of_node;
adap->dev.parent = &pdev->dev;
adap->nr = pdev->id;

Expand Down Expand Up @@ -371,6 +373,8 @@ static int i2c_sirfsoc_probe(struct platform_device *pdev)

clk_disable(clk);

of_i2c_register_devices(adap);

dev_info(&pdev->dev, " I2C adapter ready to operate\n");

return 0;
Expand Down

0 comments on commit c8633f5

Please sign in to comment.