···259259 clk_enable(timerclk);260260261261 if (!use_tclk1_12()) {262262+ tmpdev.id = 4;263263+ tmpdev.dev.init_name = "s3c24xx-pwm.4";262264 tin = clk_get(&tmpdev.dev, "pwm-tin");263265 if (IS_ERR(tin))264266 panic("failed to get pwm-tin clock for system timer");
-2
drivers/tty/serial/s3c2410.c
···9696 },9797};98989999-s3c24xx_console_init(&s3c2410_serial_driver, &s3c2410_uart_inf);100100-10199static int __init s3c2410_serial_init(void)102100{103101 return s3c24xx_serial_init(&s3c2410_serial_driver, &s3c2410_uart_inf);
-2
drivers/tty/serial/s3c2412.c
···130130 },131131};132132133133-s3c24xx_console_init(&s3c2412_serial_driver, &s3c2412_uart_inf);134134-135133static inline int s3c2412_serial_init(void)136134{137135 return s3c24xx_serial_init(&s3c2412_serial_driver, &s3c2412_uart_inf);
-2
drivers/tty/serial/s3c2440.c
···159159 },160160};161161162162-s3c24xx_console_init(&s3c2440_serial_driver, &s3c2440_uart_inf);163163-164162static int __init s3c2440_serial_init(void)165163{166164 return s3c24xx_serial_init(&s3c2440_serial_driver, &s3c2440_uart_inf);
-2
drivers/tty/serial/s3c6400.c
···130130 },131131};132132133133-s3c24xx_console_init(&s3c6400_serial_driver, &s3c6400_uart_inf);134134-135133static int __init s3c6400_serial_init(void)136134{137135 return s3c24xx_serial_init(&s3c6400_serial_driver, &s3c6400_uart_inf);
-7
drivers/tty/serial/s5pv210.c
···135135 },136136};137137138138-static int __init s5pv210_serial_console_init(void)139139-{140140- return s3c24xx_serial_initconsole(&s5p_serial_driver, s5p_uart_inf);141141-}142142-143143-console_initcall(s5pv210_serial_console_init);144144-145138static int __init s5p_serial_init(void)146139{147140 return s3c24xx_serial_init(&s5p_serial_driver, *s5p_uart_inf);
+4-5
drivers/tty/serial/samsung.c
···1416141614171417 /* is the port configured? */1418141814191419- if (port->mapbase == 0x0) {14201420- co->index = 0;14211421- port = &s3c24xx_serial_ports[co->index].port;14221422- }14191419+ if (port->mapbase == 0x0)14201420+ return -ENODEV;1423142114241422 cons_uart = port;14251423···14491451 .flags = CON_PRINTBUFFER,14501452 .index = -1,14511453 .write = s3c24xx_serial_console_write,14521452- .setup = s3c24xx_serial_console_setup14541454+ .setup = s3c24xx_serial_console_setup,14551455+ .data = &s3c24xx_uart_drv,14531456};1454145714551458int s3c24xx_serial_initconsole(struct platform_driver *drv,
-19
drivers/tty/serial/samsung.h
···7979extern int s3c24xx_serial_init(struct platform_driver *drv,8080 struct s3c24xx_uart_info *info);81818282-#ifdef CONFIG_SERIAL_SAMSUNG_CONSOLE8383-8484-#define s3c24xx_console_init(__drv, __inf) \8585-static int __init s3c_serial_console_init(void) \8686-{ \8787- struct s3c24xx_uart_info *uinfo[CONFIG_SERIAL_SAMSUNG_UARTS]; \8888- int i; \8989- \9090- for (i = 0; i < CONFIG_SERIAL_SAMSUNG_UARTS; i++) \9191- uinfo[i] = __inf; \9292- return s3c24xx_serial_initconsole(__drv, uinfo); \9393-} \9494- \9595-console_initcall(s3c_serial_console_init)9696-9797-#else9898-#define s3c24xx_console_init(drv, inf) extern void no_console(void)9999-#endif100100-10182#ifdef CONFIG_SERIAL_SAMSUNG_DEBUG1028310384extern void printascii(const char *);