[PATCH 5/5] powerpc: Call of_register_i2c_devices() for fsl-i2c.

Subsystems: linux for powerpc (32-bit and 64-bit), the rest

STALE7034d

2 messages, 1 author, 2007-05-17 · open the first message on its own page

[PATCH 5/5] powerpc: Call of_register_i2c_devices() for fsl-i2c.

From: Scott Wood <hidden>
Date: 2007-05-17 14:47:01

Call of_register_i2c_devices() to register I2C devices on
the device tree under an fsl-i2c node.

Signed-off-by: Scott Wood <redacted>
---
 arch/powerpc/sysdev/fsl_soc.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/arch/powerpc/sysdev/fsl_soc.c b/arch/powerpc/sysdev/fsl_soc.c
index cad1757..0ab9603 100644
--- a/arch/powerpc/sysdev/fsl_soc.c
+++ b/arch/powerpc/sysdev/fsl_soc.c
@@ -340,6 +340,8 @@ static int __init fsl_i2c_of_init(void)
 						    fsl_i2c_platform_data));
 		if (ret)
 			goto unreg;
+
+		of_register_i2c_devices(np, i);
 	}
 
 	return 0;
-- 
1.5.0.3

Re: [i2c] [PATCH 5/5] powerpc: Call of_register_i2c_devices() for fsl-i2c.

From: Scott Wood <hidden>
Date: 2007-05-17 15:11:08

Scott Wood wrote:
quoted hunk
Call of_register_i2c_devices() to register I2C devices on
the device tree under an fsl-i2c node.

Signed-off-by: Scott Wood <redacted>
---
 arch/powerpc/sysdev/fsl_soc.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/arch/powerpc/sysdev/fsl_soc.c b/arch/powerpc/sysdev/fsl_soc.c
index cad1757..0ab9603 100644
--- a/arch/powerpc/sysdev/fsl_soc.c
+++ b/arch/powerpc/sysdev/fsl_soc.c
@@ -340,6 +340,8 @@ static int __init fsl_i2c_of_init(void)
 						    fsl_i2c_platform_data));
 		if (ret)
 			goto unreg;
+
+		of_register_i2c_devices(np, i);
 	}
 
 	return 0;
Gah, that isn't the right patch -- I need to stop posting patches before 
noon. :-P

I have one somewhere that calls i2c_alloc_bus_number(), I'll post it 
when I find it.

-Scott
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help