linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 5/5] powerpc: Call of_register_i2c_devices() for fsl-i2c.
@ 2007-05-17 14:39 Scott Wood
  2007-05-17 15:03 ` [i2c] " Scott Wood
  0 siblings, 1 reply; 2+ messages in thread
From: Scott Wood @ 2007-05-17 14:39 UTC (permalink / raw)
  To: linuxppc-dev; +Cc: i2c

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

Signed-off-by: Scott Wood <scottwood@freescale.com>
---
 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

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

* Re: [i2c] [PATCH 5/5] powerpc: Call of_register_i2c_devices() for fsl-i2c.
  2007-05-17 14:39 [PATCH 5/5] powerpc: Call of_register_i2c_devices() for fsl-i2c Scott Wood
@ 2007-05-17 15:03 ` Scott Wood
  0 siblings, 0 replies; 2+ messages in thread
From: Scott Wood @ 2007-05-17 15:03 UTC (permalink / raw)
  To: Scott Wood; +Cc: linuxppc-dev, i2c

Scott Wood wrote:
> Call of_register_i2c_devices() to register I2C devices on
> the device tree under an fsl-i2c node.
> 
> Signed-off-by: Scott Wood <scottwood@freescale.com>
> ---
>  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

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

end of thread, other threads:[~2007-05-17 15:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-17 14:39 [PATCH 5/5] powerpc: Call of_register_i2c_devices() for fsl-i2c Scott Wood
2007-05-17 15:03 ` [i2c] " Scott Wood

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).