[i2c] [patch 2.6.24-rc1-git] i2c-davinci supports new-style drivers

David Brownell david-b at pacbell.net
Sat Oct 27 17:48:35 CEST 2007


Let DaVinci support new-style i2c drivers.

Signed-off-by: David Brownell <dbrownell at users.sourceforge.net>
---
This is another driver which shouldn't advertise support for SMBUS_QUICK...
I'm surprised it was allowed to merge with that false claim, given the
amount of pushback on merging the OMAP driver with a much safer hack for
the same problem.

 drivers/i2c/busses/i2c-davinci.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)

--- a/drivers/i2c/busses/i2c-davinci.c	2007-10-26 17:41:47.000000000 -0700
+++ b/drivers/i2c/busses/i2c-davinci.c	2007-10-26 17:44:55.000000000 -0700
@@ -538,7 +538,8 @@ davinci_i2c_probe(struct platform_device
 	adap->retries = 1;
 
 	/* i2c device drivers may be active on return from add_adapter() */
-	r = i2c_add_adapter(adap);
+	adap->nr = pdev->id;
+	r = i2c_add_numbered_adapter(adap);
 	if (r) {
 		dev_err(&pdev->dev, "failure adding adapter\n");
 		goto do_free_irq;



More information about the i2c mailing list