[PATCH V3 5/5] net/fec: add device tree matching support

2011-03-08 Thread Jason Liu
Signed-off-by: Jason Liu --- drivers/net/fec.c | 13 + 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/drivers/net/fec.c b/drivers/net/fec.c index 02cdd71..fcb9768 100644 --- a/drivers/net/fec.c +++ b/drivers/net/fec.c @@ -45,6 +45,9 @@ #include #include +#incl

[PATCH V3 4/5] net/fec: check id_entry pointer before using it

2011-03-08 Thread Jason Liu
The id_entry will possibly be NULL, So, need check id_entry and make sure it not NULL before using it. Signed-off-by: Jason Liu --- drivers/net/fec.c | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/net/fec.c b/drivers/net/fec.c index 2a71373..02cdd71 1

[PATCH V3 3/5] serial/imx: parse from device tree support

2011-03-08 Thread Jason Liu
Signed-off-by: Jason Liu Signed-off-by: Jeremy Kerr --- drivers/tty/serial/imx.c | 79 -- 1 files changed, 69 insertions(+), 10 deletions(-) diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c index dfcf4b1..c9483d1 100644 --- a/drivers

[PATCH V3 2/5] arm/dt: add very basic dts file for babbage board

2011-03-08 Thread Jason Liu
Signed-off-by: Jason Liu Singed-off-by: Rob Herring --- arch/arm/boot/dts/babbage.dts | 110 + 1 files changed, 110 insertions(+), 0 deletions(-) diff --git a/arch/arm/boot/dts/babbage.dts b/arch/arm/boot/dts/babbage.dts new file mode 100644 index 00

[PATCH V3 1/5] arm/dt: add basic mx51 device tree support

2011-03-08 Thread Jason Liu
Signed-off-by: Jason Liu --- arch/arm/mach-mx5/Kconfig |8 arch/arm/mach-mx5/Makefile |1 + arch/arm/mach-mx5/board-dt.c| 64 +++ arch/arm/mach-mx5/clock-mx51-mx53.c | 43 - arch/arm/plat-m

[PATCH V3 0/5] Add MX51 basic DT support

2011-03-08 Thread Jason Liu
From: Jason Liu This patchset adds Freescale i.mx51 device tree support. This is based on git://git.secretlab.ca/git/linux-2.6 devicetree/test This patch has been tested on MX51 babbage board and can boot up succesfully to linux console with DT enabled. Grant, I think it's almost ready for you

Re: [RFC 1/3] OLPC: Use device tree for platform identification

2011-03-08 Thread Andres Salomon
On Tue, 8 Mar 2011 21:13:00 + Daniel Drake wrote: > On 4 March 2011 18:01, Andres Salomon wrote: > >> +static int __init declare_of_platform_devices(void) > >> +{ > >> +     return of_platform_bus_probe(NULL, of_ids, NULL); > >> +} > >> +device_initcall(declare_of_platform_devices); > > > >

Re: [RFC 1/3] OLPC: Use device tree for platform identification

2011-03-08 Thread Daniel Drake
On 4 March 2011 18:01, Andres Salomon wrote: >> +static int __init declare_of_platform_devices(void) >> +{ >> +     return of_platform_bus_probe(NULL, of_ids, NULL); >> +} >> +device_initcall(declare_of_platform_devices); > > How about 'olpc_create_platform_devices' or some such name?  That's > wh

Re: [PATCH] Make of_read_number() handle unaligned data

2011-03-08 Thread David VomLehn
On Fri, Mar 04, 2011 at 10:20:45PM -0700, Grant Likely wrote: > On Tue, Feb 22, 2011 at 02:36:47PM -0800, David VomLehn wrote: > > Numeric values in properties can be unaligned, so introduce get_unaligned() > > in of_read_number() to make this work correctly on all processors. > > > > Signed-off-b