]> Pileus Git - ~andy/linux/blobdiff - arch/arm/mach-s3c2440/mach-gta02.c
Merge branch 'linux-next' of git://git.infradead.org/ubifs-2.6
[~andy/linux] / arch / arm / mach-s3c2440 / mach-gta02.c
index 9e39faa283b981bf72d93f9c45ea8c2fb7b754b8..9f2c14ec71819f89b7f327f5c97bf70370211b92 100644 (file)
 static struct pcf50633 *gta02_pcf;
 
 /*
- * This gets called every 1ms when we paniced.
+ * This gets called frequently when we paniced.
  */
 
-static long gta02_panic_blink(long count)
+static long gta02_panic_blink(int state)
 {
        long delay = 0;
-       static long last_blink;
-       static char led;
+       char led;
 
-       /* Fast blink: 200ms period. */
-       if (count - last_blink < 100)
-               return 0;
-
-       led ^= 1;
+       led = (state) ? 1 : 0;
        gpio_direction_output(GTA02_GPIO_AUX_LED, led);
 
-       last_blink = count;
-
        return delay;
 }
 
@@ -556,7 +549,7 @@ static void gta02_poweroff(void)
 
 static void __init gta02_machine_init(void)
 {
-       /* Set the panic callback to make AUX LED blink at ~5Hz. */
+       /* Set the panic callback to turn AUX LED on or off. */
        panic_blink = gta02_panic_blink;
 
        s3c_pm_init();
@@ -579,8 +572,6 @@ static void __init gta02_machine_init(void)
 
 MACHINE_START(NEO1973_GTA02, "GTA02")
        /* Maintainer: Nelson Castillo <arhuaco@freaks-unidos.net> */
-       .phys_io        = S3C2410_PA_UART,
-       .io_pg_offst    = (((u32)S3C24XX_VA_UART) >> 18) & 0xfffc,
        .boot_params    = S3C2410_SDRAM_PA + 0x100,
        .map_io         = gta02_map_io,
        .init_irq       = s3c24xx_init_irq,