Re: [PATCH v6 1/2] [POWERPC] fsl_soc: add support for fsl_spi

2007-08-22 Thread Stephen Rothwell
Hi Anton, On Wed, 22 Aug 2007 18:57:32 +0400 Anton Vorontsov <[EMAIL PROTECTED]> wrote: > > + sysclk = *(u32 *)of_get_property(np, "bus-frequency", NULL); I just cringe everytime I see someone dereference a pointer they got from somewhere (effectively) external without checking for NULL. I r

[PATCH v6 1/2] [POWERPC] fsl_soc: add support for fsl_spi

2007-08-22 Thread Anton Vorontsov
Signed-off-by: Anton Vorontsov <[EMAIL PROTECTED]> --- arch/powerpc/sysdev/fsl_soc.c | 81 + arch/powerpc/sysdev/fsl_soc.h |7 2 files changed, 88 insertions(+), 0 deletions(-) diff --git a/arch/powerpc/sysdev/fsl_soc.c b/arch/powerpc/sysdev/fsl_