Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 42896
b: refs/heads/master
c: 9399575
h: refs/heads/master
v: v3
  • Loading branch information
Maciej W. Rozycki authored and Linus Torvalds committed Dec 7, 2006
1 parent 2456ba3 commit 02e1e5c
Show file tree
Hide file tree
Showing 4 changed files with 213 additions and 230 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f7dff2b12654149c9cac8d8c79b6588759edd5a9
refs/heads/master: 9399575dd30edcb84e821583daf81d4ba774a95b
38 changes: 3 additions & 35 deletions trunk/drivers/char/decserial.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,12 @@
extern int zs_init(void);
#endif

#ifdef CONFIG_DZ
extern int dz_init(void);
#endif

#ifdef CONFIG_SERIAL_CONSOLE

#ifdef CONFIG_ZS
extern void zs_serial_console_init(void);
#endif

#ifdef CONFIG_DZ
extern void dz_serial_console_init(void);
#endif

#endif

/* rs_init - starts up the serial interface -
Expand All @@ -46,23 +38,11 @@ extern void dz_serial_console_init(void);

int __init rs_init(void)
{

#if defined(CONFIG_ZS) && defined(CONFIG_DZ)
#ifdef CONFIG_ZS
if (IOASIC)
return zs_init();
else
return dz_init();
#else

#ifdef CONFIG_ZS
return zs_init();
#endif

#ifdef CONFIG_DZ
return dz_init();
#endif

#endif
return -ENXIO;
}

__initcall(rs_init);
Expand All @@ -76,21 +56,9 @@ __initcall(rs_init);
*/
static int __init decserial_console_init(void)
{
#if defined(CONFIG_ZS) && defined(CONFIG_DZ)
#ifdef CONFIG_ZS
if (IOASIC)
zs_serial_console_init();
else
dz_serial_console_init();
#else

#ifdef CONFIG_ZS
zs_serial_console_init();
#endif

#ifdef CONFIG_DZ
dz_serial_console_init();
#endif

#endif
return 0;
}
Expand Down
Loading

0 comments on commit 02e1e5c

Please sign in to comment.