diff options
Diffstat (limited to 'arch/mips/nxp/pnx8550/common/setup.c')
-rw-r--r-- | arch/mips/nxp/pnx8550/common/setup.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/arch/mips/nxp/pnx8550/common/setup.c b/arch/mips/nxp/pnx8550/common/setup.c index 92d764c97701..2aed50fef10f 100644 --- a/arch/mips/nxp/pnx8550/common/setup.c +++ b/arch/mips/nxp/pnx8550/common/setup.c | |||
@@ -47,7 +47,6 @@ extern void pnx8550_machine_halt(void); | |||
47 | extern void pnx8550_machine_power_off(void); | 47 | extern void pnx8550_machine_power_off(void); |
48 | extern struct resource ioport_resource; | 48 | extern struct resource ioport_resource; |
49 | extern struct resource iomem_resource; | 49 | extern struct resource iomem_resource; |
50 | extern void rs_kgdb_hook(int tty_no); | ||
51 | extern char *prom_getcmdline(void); | 50 | extern char *prom_getcmdline(void); |
52 | 51 | ||
53 | struct resource standard_io_resources[] = { | 52 | struct resource standard_io_resources[] = { |
@@ -142,16 +141,5 @@ void __init plat_mem_setup(void) | |||
142 | ip3106_baud(UART_BASE, pnx8550_console_port) = 5; | 141 | ip3106_baud(UART_BASE, pnx8550_console_port) = 5; |
143 | } | 142 | } |
144 | 143 | ||
145 | #ifdef CONFIG_KGDB | ||
146 | argptr = prom_getcmdline(); | ||
147 | if ((argptr = strstr(argptr, "kgdb=ttyS")) != NULL) { | ||
148 | int line; | ||
149 | argptr += strlen("kgdb=ttyS"); | ||
150 | line = *argptr == '0' ? 0 : 1; | ||
151 | rs_kgdb_hook(line); | ||
152 | pr_info("KGDB: Using ttyS%i for session, " | ||
153 | "please connect your debugger\n", line ? 1 : 0); | ||
154 | } | ||
155 | #endif | ||
156 | return; | 144 | return; |
157 | } | 145 | } |