From: Sylvain Munaut That test is part of an old version of the code and erroneously made it to mainstream. Signed-off-by: Sylvain Munaut Signed-off-by: Kumar Gala Signed-off-by: Andrew Morton --- 25-akpm/arch/ppc/syslib/mpc52xx_setup.c | 7 ++----- 1 files changed, 2 insertions(+), 5 deletions(-) diff -puN arch/ppc/syslib/mpc52xx_setup.c~ppc32-remove-unnecessary-test-in-mpc52xx-reset-code arch/ppc/syslib/mpc52xx_setup.c --- 25/arch/ppc/syslib/mpc52xx_setup.c~ppc32-remove-unnecessary-test-in-mpc52xx-reset-code Wed Mar 30 13:32:53 2005 +++ 25-akpm/arch/ppc/syslib/mpc52xx_setup.c Wed Mar 30 13:32:53 2005 @@ -46,11 +46,8 @@ mpc52xx_restart(char *cmd) /* Turn on the watchdog and wait for it to expire. It effectively does a reset */ - if (gpt0 != NULL) { - out_be32(&gpt0->count, 0x000000ff); - out_be32(&gpt0->mode, 0x00009004); - } else - printk(KERN_ERR "mpc52xx_restart: Unable to ioremap GPT0 registers, -> looping ..."); + out_be32(&gpt0->count, 0x000000ff); + out_be32(&gpt0->mode, 0x00009004); while (1); } _