linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] i2c: change the id to let the i2c device work
@ 2012-10-12  2:34 Bo Shen
  2012-10-12  4:40 ` Mark Brown
  0 siblings, 1 reply; 12+ messages in thread
From: Bo Shen @ 2012-10-12  2:34 UTC (permalink / raw)
  To: linux-arm-kernel

As the old method will use platform device id, change the id to
let the i2c device work

Signed-off-by: Bo Shen <voice.shen@atmel.com>
---
 arch/arm/mach-at91/at91sam9260_devices.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm/mach-at91/at91sam9260_devices.c b/arch/arm/mach-at91/at91sam9260_devices.c
index 5c5966a..aad76b7 100644
--- a/arch/arm/mach-at91/at91sam9260_devices.c
+++ b/arch/arm/mach-at91/at91sam9260_devices.c
@@ -471,7 +471,7 @@ static struct i2c_gpio_platform_data pdata = {
 
 static struct platform_device at91sam9260_twi_device = {
 	.name			= "i2c-gpio",
-	.id			= -1,
+	.id			= 0,
 	.dev.platform_data	= &pdata,
 };
 
-- 
1.7.9.5

^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2012-10-12  9:02 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-12  2:34 [PATCH] i2c: change the id to let the i2c device work Bo Shen
2012-10-12  4:40 ` Mark Brown
2012-10-12  4:57   ` Bo Shen
2012-10-12  5:14     ` Mark Brown
2012-10-12  5:45       ` Bo Shen
2012-10-12  5:53         ` Mark Brown
2012-10-12  6:42           ` Bo Shen
2012-10-12  7:14           ` Jean Delvare
2012-10-12  7:55             ` Bo Shen
2012-10-12  8:05               ` Jean Delvare
2012-10-12  8:21                 ` Mark Brown
2012-10-12  9:02                   ` Bo Shen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).