[PATCH 1/6] ppc32: Remove unnecessary test in MPC52xx reset code
From: Sylvain Munaut <hidden>
Date: 2005-03-26 23:47:53
From: Sylvain Munaut <hidden>
Date: 2005-03-26 23:47:53
ppc32: Remove unnecessary test in MPC52xx reset code That test is part of an old version of the code and erroneously made it to mainstream. Signed-off-by: Sylvain Munaut <redacted> Signed-off-by: Kumar Gala <redacted> --- diff -Nru a/arch/ppc/syslib/mpc52xx_setup.c b/arch/ppc/syslib/mpc52xx_setup.c
--- a/arch/ppc/syslib/mpc52xx_setup.c 2005-03-26 19:55:53 +01:00
+++ b/arch/ppc/syslib/mpc52xx_setup.c 2005-03-26 19:55:53 +01:00@@ -46,11 +46,8 @@ /* 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); }