diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-01-26 00:06:30 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-01-26 00:06:30 -0500 |
commit | 422d26b6ecd77af8c77f2a40580679459825170f (patch) | |
tree | 632e690e458fb7b27db200cd6fcd5429e143e419 /drivers/i2c/busses/i2c-sirf.c | |
parent | 4c271bb67c04253c1e99006eb48fb773a8fe8c0f (diff) | |
parent | 949db153b6466c6f7cad5a427ecea94985927311 (diff) |
Merge 3.8-rc5 into driver-core-next
This resolves a gpio driver merge issue pointed out in linux-next.
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/i2c/busses/i2c-sirf.c')
-rw-r--r-- | drivers/i2c/busses/i2c-sirf.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/i2c/busses/i2c-sirf.c b/drivers/i2c/busses/i2c-sirf.c index 183cf05be1de..5a7ad240bd26 100644 --- a/drivers/i2c/busses/i2c-sirf.c +++ b/drivers/i2c/busses/i2c-sirf.c | |||
@@ -12,6 +12,7 @@ | |||
12 | #include <linux/slab.h> | 12 | #include <linux/slab.h> |
13 | #include <linux/platform_device.h> | 13 | #include <linux/platform_device.h> |
14 | #include <linux/i2c.h> | 14 | #include <linux/i2c.h> |
15 | #include <linux/of_i2c.h> | ||
15 | #include <linux/clk.h> | 16 | #include <linux/clk.h> |
16 | #include <linux/err.h> | 17 | #include <linux/err.h> |
17 | #include <linux/io.h> | 18 | #include <linux/io.h> |
@@ -327,6 +328,7 @@ static int i2c_sirfsoc_probe(struct platform_device *pdev) | |||
327 | adap->algo = &i2c_sirfsoc_algo; | 328 | adap->algo = &i2c_sirfsoc_algo; |
328 | adap->algo_data = siic; | 329 | adap->algo_data = siic; |
329 | 330 | ||
331 | adap->dev.of_node = pdev->dev.of_node; | ||
330 | adap->dev.parent = &pdev->dev; | 332 | adap->dev.parent = &pdev->dev; |
331 | adap->nr = pdev->id; | 333 | adap->nr = pdev->id; |
332 | 334 | ||
@@ -370,6 +372,8 @@ static int i2c_sirfsoc_probe(struct platform_device *pdev) | |||
370 | 372 | ||
371 | clk_disable(clk); | 373 | clk_disable(clk); |
372 | 374 | ||
375 | of_i2c_register_devices(adap); | ||
376 | |||
373 | dev_info(&pdev->dev, " I2C adapter ready to operate\n"); | 377 | dev_info(&pdev->dev, " I2C adapter ready to operate\n"); |
374 | 378 | ||
375 | return 0; | 379 | return 0; |