On Fri, 14 Sep 2007 15:46:40 +1000 Jeremy Kerr <[EMAIL PROTECTED]> wrote: > > - avr_clock = *(u32*)of_get_property(avr, "clock-frequency", &len); > - phys_addr = ((u32*)of_get_property(avr, "reg", &len))[0]; > + phys_addr = of_get_property(avr, "reg", &len); > + avr_clock_prop = of_get_property(avr, "clock-frequency", &len);
If you don't use the value of the len variable, then you can pass NULL to of_get_property. > + if (!avr_clock || !phys_addr[0]) Not *phys_addr? -- Cheers, Stephen Rothwell [EMAIL PROTECTED] http://www.canb.auug.org.au/~sfr/
pgprwX5anjCHF.pgp
Description: PGP signature
_______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-dev