ChangeSet 1.2232, 2005/03/31 08:28:30-08:00, [EMAIL PROTECTED]

        [PATCH] 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 <[EMAIL PROTECTED]>
        Signed-off-by: Kumar Gala <[EMAIL PROTECTED]>
        Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
        Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>



 mpc52xx_setup.c |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)


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-31 10:10:34 -08:00
+++ b/arch/ppc/syslib/mpc52xx_setup.c   2005-03-31 10:10:34 -08: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);
 }
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to