Commit a0564e14 authored by Jiri Slaby's avatar Jiri Slaby Committed by Linus Torvalds

[PATCH] Char: stallion, use pr_debug macro

Use pr_debug kernel macro instead of #ifdef DEBUG | printk() | #endif
Signed-off-by: default avatarJiri Slaby <jirislaby@gmail.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 95a7b8b9
...@@ -735,9 +735,7 @@ static void __exit stallion_module_exit(void) ...@@ -735,9 +735,7 @@ static void __exit stallion_module_exit(void)
stlport_t *portp; stlport_t *portp;
int i, j, k; int i, j, k;
#ifdef DEBUG pr_debug("cleanup_module()\n");
printk("cleanup_module()\n");
#endif
printk(KERN_INFO "Unloading %s: version %s\n", stl_drvtitle, printk(KERN_INFO "Unloading %s: version %s\n", stl_drvtitle,
stl_drvversion); stl_drvversion);
...@@ -808,9 +806,7 @@ static void stl_argbrds(void) ...@@ -808,9 +806,7 @@ static void stl_argbrds(void)
stlbrd_t *brdp; stlbrd_t *brdp;
int i; int i;
#ifdef DEBUG pr_debug("stl_argbrds()\n");
printk("stl_argbrds()\n");
#endif
for (i = stl_nrbrds; (i < stl_nargs); i++) { for (i = stl_nrbrds; (i < stl_nargs); i++) {
memset(&conf, 0, sizeof(conf)); memset(&conf, 0, sizeof(conf));
...@@ -876,9 +872,7 @@ static int stl_parsebrd(stlconf_t *confp, char **argp) ...@@ -876,9 +872,7 @@ static int stl_parsebrd(stlconf_t *confp, char **argp)
char *sp; char *sp;
int i; int i;
#ifdef DEBUG pr_debug("stl_parsebrd(confp=%p,argp=%p)\n", confp, argp);
printk("stl_parsebrd(confp=%x,argp=%x)\n", (int) confp, (int) argp);
#endif
if ((argp[0] == (char *) NULL) || (*argp[0] == 0)) if ((argp[0] == (char *) NULL) || (*argp[0] == 0))
return 0; return 0;
...@@ -941,10 +935,7 @@ static int stl_open(struct tty_struct *tty, struct file *filp) ...@@ -941,10 +935,7 @@ static int stl_open(struct tty_struct *tty, struct file *filp)
unsigned int minordev; unsigned int minordev;
int brdnr, panelnr, portnr, rc; int brdnr, panelnr, portnr, rc;
#ifdef DEBUG pr_debug("stl_open(tty=%p,filp=%p): device=%s\n", tty, filp, tty->name);
printk("stl_open(tty=%x,filp=%x): device=%s\n", (int) tty,
(int) filp, tty->name);
#endif
minordev = tty->index; minordev = tty->index;
brdnr = MINOR2BRD(minordev); brdnr = MINOR2BRD(minordev);
...@@ -1034,9 +1025,7 @@ static int stl_waitcarrier(stlport_t *portp, struct file *filp) ...@@ -1034,9 +1025,7 @@ static int stl_waitcarrier(stlport_t *portp, struct file *filp)
unsigned long flags; unsigned long flags;
int rc, doclocal; int rc, doclocal;
#ifdef DEBUG pr_debug("stl_waitcarrier(portp=%p,filp=%p)\n", portp, filp);
printk("stl_waitcarrier(portp=%x,filp=%x)\n", (int) portp, (int) filp);
#endif
rc = 0; rc = 0;
doclocal = 0; doclocal = 0;
...@@ -1088,9 +1077,7 @@ static void stl_close(struct tty_struct *tty, struct file *filp) ...@@ -1088,9 +1077,7 @@ static void stl_close(struct tty_struct *tty, struct file *filp)
stlport_t *portp; stlport_t *portp;
unsigned long flags; unsigned long flags;
#ifdef DEBUG pr_debug("stl_close(tty=%p,filp=%p)\n", tty, filp);
printk("stl_close(tty=%x,filp=%x)\n", (int) tty, (int) filp);
#endif
portp = tty->driver_data; portp = tty->driver_data;
if (portp == (stlport_t *) NULL) if (portp == (stlport_t *) NULL)
...@@ -1172,10 +1159,7 @@ static int stl_write(struct tty_struct *tty, const unsigned char *buf, int count ...@@ -1172,10 +1159,7 @@ static int stl_write(struct tty_struct *tty, const unsigned char *buf, int count
unsigned char *chbuf; unsigned char *chbuf;
char *head, *tail; char *head, *tail;
#ifdef DEBUG pr_debug("stl_write(tty=%p,buf=%p,count=%d)\n", tty, buf, count);
printk("stl_write(tty=%x,buf=%x,count=%d)\n",
(int) tty, (int) buf, count);
#endif
portp = tty->driver_data; portp = tty->driver_data;
if (portp == (stlport_t *) NULL) if (portp == (stlport_t *) NULL)
...@@ -1231,9 +1215,7 @@ static void stl_putchar(struct tty_struct *tty, unsigned char ch) ...@@ -1231,9 +1215,7 @@ static void stl_putchar(struct tty_struct *tty, unsigned char ch)
unsigned int len; unsigned int len;
char *head, *tail; char *head, *tail;
#ifdef DEBUG pr_debug("stl_putchar(tty=%p,ch=%x)\n", tty, ch);
printk("stl_putchar(tty=%x,ch=%x)\n", (int) tty, (int) ch);
#endif
if (tty == (struct tty_struct *) NULL) if (tty == (struct tty_struct *) NULL)
return; return;
...@@ -1269,9 +1251,7 @@ static void stl_flushchars(struct tty_struct *tty) ...@@ -1269,9 +1251,7 @@ static void stl_flushchars(struct tty_struct *tty)
{ {
stlport_t *portp; stlport_t *portp;
#ifdef DEBUG pr_debug("stl_flushchars(tty=%p)\n", tty);
printk("stl_flushchars(tty=%x)\n", (int) tty);
#endif
if (tty == (struct tty_struct *) NULL) if (tty == (struct tty_struct *) NULL)
return; return;
...@@ -1291,9 +1271,7 @@ static int stl_writeroom(struct tty_struct *tty) ...@@ -1291,9 +1271,7 @@ static int stl_writeroom(struct tty_struct *tty)
stlport_t *portp; stlport_t *portp;
char *head, *tail; char *head, *tail;
#ifdef DEBUG pr_debug("stl_writeroom(tty=%p)\n", tty);
printk("stl_writeroom(tty=%x)\n", (int) tty);
#endif
if (tty == (struct tty_struct *) NULL) if (tty == (struct tty_struct *) NULL)
return 0; return 0;
...@@ -1325,9 +1303,7 @@ static int stl_charsinbuffer(struct tty_struct *tty) ...@@ -1325,9 +1303,7 @@ static int stl_charsinbuffer(struct tty_struct *tty)
unsigned int size; unsigned int size;
char *head, *tail; char *head, *tail;
#ifdef DEBUG pr_debug("stl_charsinbuffer(tty=%p)\n", tty);
printk("stl_charsinbuffer(tty=%x)\n", (int) tty);
#endif
if (tty == (struct tty_struct *) NULL) if (tty == (struct tty_struct *) NULL)
return 0; return 0;
...@@ -1356,9 +1332,7 @@ static int stl_getserial(stlport_t *portp, struct serial_struct __user *sp) ...@@ -1356,9 +1332,7 @@ static int stl_getserial(stlport_t *portp, struct serial_struct __user *sp)
struct serial_struct sio; struct serial_struct sio;
stlbrd_t *brdp; stlbrd_t *brdp;
#ifdef DEBUG pr_debug("stl_getserial(portp=%p,sp=%p)\n", portp, sp);
printk("stl_getserial(portp=%x,sp=%x)\n", (int) portp, (int) sp);
#endif
memset(&sio, 0, sizeof(struct serial_struct)); memset(&sio, 0, sizeof(struct serial_struct));
sio.line = portp->portnr; sio.line = portp->portnr;
...@@ -1396,9 +1370,7 @@ static int stl_setserial(stlport_t *portp, struct serial_struct __user *sp) ...@@ -1396,9 +1370,7 @@ static int stl_setserial(stlport_t *portp, struct serial_struct __user *sp)
{ {
struct serial_struct sio; struct serial_struct sio;
#ifdef DEBUG pr_debug("stl_setserial(portp=%p,sp=%p)\n", portp, sp);
printk("stl_setserial(portp=%x,sp=%x)\n", (int) portp, (int) sp);
#endif
if (copy_from_user(&sio, sp, sizeof(struct serial_struct))) if (copy_from_user(&sio, sp, sizeof(struct serial_struct)))
return -EFAULT; return -EFAULT;
...@@ -1471,10 +1443,8 @@ static int stl_ioctl(struct tty_struct *tty, struct file *file, unsigned int cmd ...@@ -1471,10 +1443,8 @@ static int stl_ioctl(struct tty_struct *tty, struct file *file, unsigned int cmd
int rc; int rc;
void __user *argp = (void __user *)arg; void __user *argp = (void __user *)arg;
#ifdef DEBUG pr_debug("stl_ioctl(tty=%p,file=%p,cmd=%x,arg=%lx)\n", tty, file, cmd,
printk("stl_ioctl(tty=%x,file=%x,cmd=%x,arg=%x)\n", arg);
(int) tty, (int) file, cmd, (int) arg);
#endif
if (tty == (struct tty_struct *) NULL) if (tty == (struct tty_struct *) NULL)
return -ENODEV; return -ENODEV;
...@@ -1536,9 +1506,7 @@ static void stl_settermios(struct tty_struct *tty, struct termios *old) ...@@ -1536,9 +1506,7 @@ static void stl_settermios(struct tty_struct *tty, struct termios *old)
stlport_t *portp; stlport_t *portp;
struct termios *tiosp; struct termios *tiosp;
#ifdef DEBUG pr_debug("stl_settermios(tty=%p,old=%p)\n", tty, old);
printk("stl_settermios(tty=%x,old=%x)\n", (int) tty, (int) old);
#endif
if (tty == (struct tty_struct *) NULL) if (tty == (struct tty_struct *) NULL)
return; return;
...@@ -1573,9 +1541,7 @@ static void stl_throttle(struct tty_struct *tty) ...@@ -1573,9 +1541,7 @@ static void stl_throttle(struct tty_struct *tty)
{ {
stlport_t *portp; stlport_t *portp;
#ifdef DEBUG pr_debug("stl_throttle(tty=%p)\n", tty);
printk("stl_throttle(tty=%x)\n", (int) tty);
#endif
if (tty == (struct tty_struct *) NULL) if (tty == (struct tty_struct *) NULL)
return; return;
...@@ -1595,9 +1561,7 @@ static void stl_unthrottle(struct tty_struct *tty) ...@@ -1595,9 +1561,7 @@ static void stl_unthrottle(struct tty_struct *tty)
{ {
stlport_t *portp; stlport_t *portp;
#ifdef DEBUG pr_debug("stl_unthrottle(tty=%p)\n", tty);
printk("stl_unthrottle(tty=%x)\n", (int) tty);
#endif
if (tty == (struct tty_struct *) NULL) if (tty == (struct tty_struct *) NULL)
return; return;
...@@ -1618,9 +1582,7 @@ static void stl_stop(struct tty_struct *tty) ...@@ -1618,9 +1582,7 @@ static void stl_stop(struct tty_struct *tty)
{ {
stlport_t *portp; stlport_t *portp;
#ifdef DEBUG pr_debug("stl_stop(tty=%p)\n", tty);
printk("stl_stop(tty=%x)\n", (int) tty);
#endif
if (tty == (struct tty_struct *) NULL) if (tty == (struct tty_struct *) NULL)
return; return;
...@@ -1640,9 +1602,7 @@ static void stl_start(struct tty_struct *tty) ...@@ -1640,9 +1602,7 @@ static void stl_start(struct tty_struct *tty)
{ {
stlport_t *portp; stlport_t *portp;
#ifdef DEBUG pr_debug("stl_start(tty=%p)\n", tty);
printk("stl_start(tty=%x)\n", (int) tty);
#endif
if (tty == (struct tty_struct *) NULL) if (tty == (struct tty_struct *) NULL)
return; return;
...@@ -1664,9 +1624,7 @@ static void stl_hangup(struct tty_struct *tty) ...@@ -1664,9 +1624,7 @@ static void stl_hangup(struct tty_struct *tty)
{ {
stlport_t *portp; stlport_t *portp;
#ifdef DEBUG pr_debug("stl_hangup(tty=%p)\n", tty);
printk("stl_hangup(tty=%x)\n", (int) tty);
#endif
if (tty == (struct tty_struct *) NULL) if (tty == (struct tty_struct *) NULL)
return; return;
...@@ -1700,9 +1658,7 @@ static void stl_flushbuffer(struct tty_struct *tty) ...@@ -1700,9 +1658,7 @@ static void stl_flushbuffer(struct tty_struct *tty)
{ {
stlport_t *portp; stlport_t *portp;
#ifdef DEBUG pr_debug("stl_flushbuffer(tty=%p)\n", tty);
printk("stl_flushbuffer(tty=%x)\n", (int) tty);
#endif
if (tty == (struct tty_struct *) NULL) if (tty == (struct tty_struct *) NULL)
return; return;
...@@ -1720,9 +1676,7 @@ static void stl_breakctl(struct tty_struct *tty, int state) ...@@ -1720,9 +1676,7 @@ static void stl_breakctl(struct tty_struct *tty, int state)
{ {
stlport_t *portp; stlport_t *portp;
#ifdef DEBUG pr_debug("stl_breakctl(tty=%p,state=%d)\n", tty, state);
printk("stl_breakctl(tty=%x,state=%d)\n", (int) tty, state);
#endif
if (tty == (struct tty_struct *) NULL) if (tty == (struct tty_struct *) NULL)
return; return;
...@@ -1740,9 +1694,7 @@ static void stl_waituntilsent(struct tty_struct *tty, int timeout) ...@@ -1740,9 +1694,7 @@ static void stl_waituntilsent(struct tty_struct *tty, int timeout)
stlport_t *portp; stlport_t *portp;
unsigned long tend; unsigned long tend;
#ifdef DEBUG pr_debug("stl_waituntilsent(tty=%p,timeout=%d)\n", tty, timeout);
printk("stl_waituntilsent(tty=%x,timeout=%d)\n", (int) tty, timeout);
#endif
if (tty == (struct tty_struct *) NULL) if (tty == (struct tty_struct *) NULL)
return; return;
...@@ -1769,9 +1721,7 @@ static void stl_sendxchar(struct tty_struct *tty, char ch) ...@@ -1769,9 +1721,7 @@ static void stl_sendxchar(struct tty_struct *tty, char ch)
{ {
stlport_t *portp; stlport_t *portp;
#ifdef DEBUG pr_debug("stl_sendxchar(tty=%p,ch=%x)\n", tty, ch);
printk("stl_sendxchar(tty=%x,ch=%x)\n", (int) tty, ch);
#endif
if (tty == (struct tty_struct *) NULL) if (tty == (struct tty_struct *) NULL)
return; return;
...@@ -1850,11 +1800,8 @@ static int stl_readproc(char *page, char **start, off_t off, int count, int *eof ...@@ -1850,11 +1800,8 @@ static int stl_readproc(char *page, char **start, off_t off, int count, int *eof
int curoff, maxoff; int curoff, maxoff;
char *pos; char *pos;
#ifdef DEBUG pr_debug("stl_readproc(page=%p,start=%p,off=%lx,count=%d,eof=%p,"
printk("stl_readproc(page=%x,start=%x,off=%x,count=%d,eof=%x," "data=%p\n", page, start, off, count, eof, data);
"data=%x\n", (int) page, (int) start, (int) off, count,
(int) eof, (int) data);
#endif
pos = page; pos = page;
totalport = 0; totalport = 0;
...@@ -1931,9 +1878,7 @@ static irqreturn_t stl_intr(int irq, void *dev_id) ...@@ -1931,9 +1878,7 @@ static irqreturn_t stl_intr(int irq, void *dev_id)
{ {
stlbrd_t *brdp = (stlbrd_t *) dev_id; stlbrd_t *brdp = (stlbrd_t *) dev_id;
#ifdef DEBUG pr_debug("stl_intr(brdp=%p,irq=%d)\n", brdp, irq);
printk("stl_intr(brdp=%x,irq=%d)\n", (int) brdp, irq);
#endif
return IRQ_RETVAL((* brdp->isr)(brdp)); return IRQ_RETVAL((* brdp->isr)(brdp));
} }
...@@ -2087,9 +2032,7 @@ static void stl_offintr(struct work_struct *work) ...@@ -2087,9 +2032,7 @@ static void stl_offintr(struct work_struct *work)
struct tty_struct *tty; struct tty_struct *tty;
unsigned int oldsigs; unsigned int oldsigs;
#ifdef DEBUG pr_debug("stl_offintr(portp=%p)\n", portp);
printk("stl_offintr(portp=%x)\n", (int) portp);
#endif
if (portp == (stlport_t *) NULL) if (portp == (stlport_t *) NULL)
return; return;
...@@ -2127,9 +2070,7 @@ static int __init stl_initports(stlbrd_t *brdp, stlpanel_t *panelp) ...@@ -2127,9 +2070,7 @@ static int __init stl_initports(stlbrd_t *brdp, stlpanel_t *panelp)
stlport_t *portp; stlport_t *portp;
int chipmask, i; int chipmask, i;
#ifdef DEBUG pr_debug("stl_initports(brdp=%p,panelp=%p)\n", brdp, panelp);
printk("stl_initports(brdp=%x,panelp=%x)\n", (int) brdp, (int) panelp);
#endif
chipmask = stl_panelinit(brdp, panelp); chipmask = stl_panelinit(brdp, panelp);
...@@ -2180,9 +2121,7 @@ static inline int stl_initeio(stlbrd_t *brdp) ...@@ -2180,9 +2121,7 @@ static inline int stl_initeio(stlbrd_t *brdp)
char *name; char *name;
int rc; int rc;
#ifdef DEBUG pr_debug("stl_initeio(brdp=%p)\n", brdp);
printk("stl_initeio(brdp=%x)\n", (int) brdp);
#endif
brdp->ioctrl = brdp->ioaddr1 + 1; brdp->ioctrl = brdp->ioaddr1 + 1;
brdp->iostatus = brdp->ioaddr1 + 2; brdp->iostatus = brdp->ioaddr1 + 2;
...@@ -2323,9 +2262,7 @@ static inline int stl_initech(stlbrd_t *brdp) ...@@ -2323,9 +2262,7 @@ static inline int stl_initech(stlbrd_t *brdp)
int panelnr, banknr, i; int panelnr, banknr, i;
char *name; char *name;
#ifdef DEBUG pr_debug("stl_initech(brdp=%p)\n", brdp);
printk("stl_initech(brdp=%x)\n", (int) brdp);
#endif
status = 0; status = 0;
conflict = 0; conflict = 0;
...@@ -2533,9 +2470,7 @@ static int __init stl_brdinit(stlbrd_t *brdp) ...@@ -2533,9 +2470,7 @@ static int __init stl_brdinit(stlbrd_t *brdp)
{ {
int i; int i;
#ifdef DEBUG pr_debug("stl_brdinit(brdp=%p)\n", brdp);
printk("stl_brdinit(brdp=%x)\n", (int) brdp);
#endif
switch (brdp->brdtype) { switch (brdp->brdtype) {
case BRD_EASYIO: case BRD_EASYIO:
...@@ -2607,10 +2542,8 @@ static inline int stl_initpcibrd(int brdtype, struct pci_dev *devp) ...@@ -2607,10 +2542,8 @@ static inline int stl_initpcibrd(int brdtype, struct pci_dev *devp)
{ {
stlbrd_t *brdp; stlbrd_t *brdp;
#ifdef DEBUG pr_debug("stl_initpcibrd(brdtype=%d,busnr=%x,devnr=%x)\n", brdtype,
printk("stl_initpcibrd(brdtype=%d,busnr=%x,devnr=%x)\n", brdtype,
devp->bus->number, devp->devfn); devp->bus->number, devp->devfn);
#endif
if (pci_enable_device(devp)) if (pci_enable_device(devp))
return(-EIO); return(-EIO);
...@@ -2627,11 +2560,9 @@ static inline int stl_initpcibrd(int brdtype, struct pci_dev *devp) ...@@ -2627,11 +2560,9 @@ static inline int stl_initpcibrd(int brdtype, struct pci_dev *devp)
* Different Stallion boards use the BAR registers in different ways, * Different Stallion boards use the BAR registers in different ways,
* so set up io addresses based on board type. * so set up io addresses based on board type.
*/ */
#ifdef DEBUG pr_debug("%s(%d): BAR[]=%Lx,%Lx,%Lx,%Lx IRQ=%x\n", __FILE__, __LINE__,
printk("%s(%d): BAR[]=%x,%x,%x,%x IRQ=%x\n", __FILE__, __LINE__,
pci_resource_start(devp, 0), pci_resource_start(devp, 1), pci_resource_start(devp, 0), pci_resource_start(devp, 1),
pci_resource_start(devp, 2), pci_resource_start(devp, 3), devp->irq); pci_resource_start(devp, 2), pci_resource_start(devp, 3), devp->irq);
#endif
/* /*
* We have all resources from the board, so let's setup the actual * We have all resources from the board, so let's setup the actual
...@@ -2674,9 +2605,7 @@ static inline int stl_findpcibrds(void) ...@@ -2674,9 +2605,7 @@ static inline int stl_findpcibrds(void)
struct pci_dev *dev = NULL; struct pci_dev *dev = NULL;
int i, rc; int i, rc;
#ifdef DEBUG pr_debug("stl_findpcibrds()\n");
printk("stl_findpcibrds()\n");
#endif
for (i = 0; (i < stl_nrpcibrds); i++) for (i = 0; (i < stl_nrpcibrds); i++)
while ((dev = pci_find_device(stl_pcibrds[i].vendid, while ((dev = pci_find_device(stl_pcibrds[i].vendid,
...@@ -2713,9 +2642,7 @@ static inline int stl_initbrds(void) ...@@ -2713,9 +2642,7 @@ static inline int stl_initbrds(void)
stlconf_t *confp; stlconf_t *confp;
int i; int i;
#ifdef DEBUG pr_debug("stl_initbrds()\n");
printk("stl_initbrds()\n");
#endif
if (stl_nrbrds > STL_MAXBRDS) { if (stl_nrbrds > STL_MAXBRDS) {
printk("STALLION: too many boards in configuration table, " printk("STALLION: too many boards in configuration table, "
...@@ -2956,10 +2883,7 @@ static int stl_memioctl(struct inode *ip, struct file *fp, unsigned int cmd, uns ...@@ -2956,10 +2883,7 @@ static int stl_memioctl(struct inode *ip, struct file *fp, unsigned int cmd, uns
int brdnr, rc; int brdnr, rc;
void __user *argp = (void __user *)arg; void __user *argp = (void __user *)arg;
#ifdef DEBUG pr_debug("stl_memioctl(ip=%p,fp=%p,cmd=%x,arg=%lx)\n", ip, fp, cmd,arg);
printk("stl_memioctl(ip=%x,fp=%x,cmd=%x,arg=%x)\n", (int) ip,
(int) fp, cmd, (int) arg);
#endif
brdnr = iminor(ip); brdnr = iminor(ip);
if (brdnr >= STL_MAXBRDS) if (brdnr >= STL_MAXBRDS)
...@@ -3110,9 +3034,7 @@ static int stl_cd1400panelinit(stlbrd_t *brdp, stlpanel_t *panelp) ...@@ -3110,9 +3034,7 @@ static int stl_cd1400panelinit(stlbrd_t *brdp, stlpanel_t *panelp)
int nrchips, uartaddr, ioaddr; int nrchips, uartaddr, ioaddr;
unsigned long flags; unsigned long flags;
#ifdef DEBUG pr_debug("stl_panelinit(brdp=%p,panelp=%p)\n", brdp, panelp);
printk("stl_panelinit(brdp=%x,panelp=%x)\n", (int) brdp, (int) panelp);
#endif
spin_lock_irqsave(&brd_lock, flags); spin_lock_irqsave(&brd_lock, flags);
BRDENABLE(panelp->brdnr, panelp->pagenr); BRDENABLE(panelp->brdnr, panelp->pagenr);
...@@ -3165,10 +3087,8 @@ static int stl_cd1400panelinit(stlbrd_t *brdp, stlpanel_t *panelp) ...@@ -3165,10 +3087,8 @@ static int stl_cd1400panelinit(stlbrd_t *brdp, stlpanel_t *panelp)
static void stl_cd1400portinit(stlbrd_t *brdp, stlpanel_t *panelp, stlport_t *portp) static void stl_cd1400portinit(stlbrd_t *brdp, stlpanel_t *panelp, stlport_t *portp)
{ {
unsigned long flags; unsigned long flags;
#ifdef DEBUG pr_debug("stl_cd1400portinit(brdp=%p,panelp=%p,portp=%p)\n", brdp,
printk("stl_cd1400portinit(brdp=%x,panelp=%x,portp=%x)\n", panelp, portp);
(int) brdp, (int) panelp, (int) portp);
#endif
if ((brdp == (stlbrd_t *) NULL) || (panelp == (stlpanel_t *) NULL) || if ((brdp == (stlbrd_t *) NULL) || (panelp == (stlpanel_t *) NULL) ||
(portp == (stlport_t *) NULL)) (portp == (stlport_t *) NULL))
...@@ -3382,18 +3302,16 @@ static void stl_cd1400setport(stlport_t *portp, struct termios *tiosp) ...@@ -3382,18 +3302,16 @@ static void stl_cd1400setport(stlport_t *portp, struct termios *tiosp)
* them all up. * them all up.
*/ */
#ifdef DEBUG pr_debug("SETPORT: portnr=%d panelnr=%d brdnr=%d\n",
printk("SETPORT: portnr=%d panelnr=%d brdnr=%d\n",
portp->portnr, portp->panelnr, portp->brdnr); portp->portnr, portp->panelnr, portp->brdnr);
printk(" cor1=%x cor2=%x cor3=%x cor4=%x cor5=%x\n", pr_debug(" cor1=%x cor2=%x cor3=%x cor4=%x cor5=%x\n",
cor1, cor2, cor3, cor4, cor5); cor1, cor2, cor3, cor4, cor5);
printk(" mcor1=%x mcor2=%x rtpr=%x sreron=%x sreroff=%x\n", pr_debug(" mcor1=%x mcor2=%x rtpr=%x sreron=%x sreroff=%x\n",
mcor1, mcor2, rtpr, sreron, sreroff); mcor1, mcor2, rtpr, sreron, sreroff);
printk(" tcor=%x tbpr=%x rcor=%x rbpr=%x\n", clk, div, clk, div); pr_debug(" tcor=%x tbpr=%x rcor=%x rbpr=%x\n", clk, div, clk, div);
printk(" schr1=%x schr2=%x schr3=%x schr4=%x\n", pr_debug(" schr1=%x schr2=%x schr3=%x schr4=%x\n",
tiosp->c_cc[VSTART], tiosp->c_cc[VSTOP], tiosp->c_cc[VSTART], tiosp->c_cc[VSTOP],
tiosp->c_cc[VSTART], tiosp->c_cc[VSTOP]); tiosp->c_cc[VSTART], tiosp->c_cc[VSTOP]);
#endif
spin_lock_irqsave(&brd_lock, flags); spin_lock_irqsave(&brd_lock, flags);
BRDENABLE(portp->brdnr, portp->pagenr); BRDENABLE(portp->brdnr, portp->pagenr);
...@@ -3446,10 +3364,8 @@ static void stl_cd1400setsignals(stlport_t *portp, int dtr, int rts) ...@@ -3446,10 +3364,8 @@ static void stl_cd1400setsignals(stlport_t *portp, int dtr, int rts)
unsigned char msvr1, msvr2; unsigned char msvr1, msvr2;
unsigned long flags; unsigned long flags;
#ifdef DEBUG pr_debug("stl_cd1400setsignals(portp=%p,dtr=%d,rts=%d)\n",
printk("stl_cd1400setsignals(portp=%x,dtr=%d,rts=%d)\n", portp, dtr, rts);
(int) portp, dtr, rts);
#endif
msvr1 = 0; msvr1 = 0;
msvr2 = 0; msvr2 = 0;
...@@ -3481,9 +3397,7 @@ static int stl_cd1400getsignals(stlport_t *portp) ...@@ -3481,9 +3397,7 @@ static int stl_cd1400getsignals(stlport_t *portp)
unsigned long flags; unsigned long flags;
int sigs; int sigs;
#ifdef DEBUG pr_debug("stl_cd1400getsignals(portp=%p)\n", portp);
printk("stl_cd1400getsignals(portp=%x)\n", (int) portp);
#endif
spin_lock_irqsave(&brd_lock, flags); spin_lock_irqsave(&brd_lock, flags);
BRDENABLE(portp->brdnr, portp->pagenr); BRDENABLE(portp->brdnr, portp->pagenr);
...@@ -3518,10 +3432,8 @@ static void stl_cd1400enablerxtx(stlport_t *portp, int rx, int tx) ...@@ -3518,10 +3432,8 @@ static void stl_cd1400enablerxtx(stlport_t *portp, int rx, int tx)
unsigned char ccr; unsigned char ccr;
unsigned long flags; unsigned long flags;
#ifdef DEBUG pr_debug("stl_cd1400enablerxtx(portp=%p,rx=%d,tx=%d)\n", portp, rx, tx);
printk("stl_cd1400enablerxtx(portp=%x,rx=%d,tx=%d)\n",
(int) portp, rx, tx);
#endif
ccr = 0; ccr = 0;
if (tx == 0) if (tx == 0)
...@@ -3554,10 +3466,7 @@ static void stl_cd1400startrxtx(stlport_t *portp, int rx, int tx) ...@@ -3554,10 +3466,7 @@ static void stl_cd1400startrxtx(stlport_t *portp, int rx, int tx)
unsigned char sreron, sreroff; unsigned char sreron, sreroff;
unsigned long flags; unsigned long flags;
#ifdef DEBUG pr_debug("stl_cd1400startrxtx(portp=%p,rx=%d,tx=%d)\n", portp, rx, tx);
printk("stl_cd1400startrxtx(portp=%x,rx=%d,tx=%d)\n",
(int) portp, rx, tx);
#endif
sreron = 0; sreron = 0;
sreroff = 0; sreroff = 0;
...@@ -3593,9 +3502,8 @@ static void stl_cd1400disableintrs(stlport_t *portp) ...@@ -3593,9 +3502,8 @@ static void stl_cd1400disableintrs(stlport_t *portp)
{ {
unsigned long flags; unsigned long flags;
#ifdef DEBUG pr_debug("stl_cd1400disableintrs(portp=%p)\n", portp);
printk("stl_cd1400disableintrs(portp=%x)\n", (int) portp);
#endif
spin_lock_irqsave(&brd_lock, flags); spin_lock_irqsave(&brd_lock, flags);
BRDENABLE(portp->brdnr, portp->pagenr); BRDENABLE(portp->brdnr, portp->pagenr);
stl_cd1400setreg(portp, CAR, (portp->portnr & 0x03)); stl_cd1400setreg(portp, CAR, (portp->portnr & 0x03));
...@@ -3610,9 +3518,7 @@ static void stl_cd1400sendbreak(stlport_t *portp, int len) ...@@ -3610,9 +3518,7 @@ static void stl_cd1400sendbreak(stlport_t *portp, int len)
{ {
unsigned long flags; unsigned long flags;
#ifdef DEBUG pr_debug("stl_cd1400sendbreak(portp=%p,len=%d)\n", portp, len);
printk("stl_cd1400sendbreak(portp=%x,len=%d)\n", (int) portp, len);
#endif
spin_lock_irqsave(&brd_lock, flags); spin_lock_irqsave(&brd_lock, flags);
BRDENABLE(portp->brdnr, portp->pagenr); BRDENABLE(portp->brdnr, portp->pagenr);
...@@ -3638,9 +3544,7 @@ static void stl_cd1400flowctrl(stlport_t *portp, int state) ...@@ -3638,9 +3544,7 @@ static void stl_cd1400flowctrl(stlport_t *portp, int state)
struct tty_struct *tty; struct tty_struct *tty;
unsigned long flags; unsigned long flags;
#ifdef DEBUG pr_debug("stl_cd1400flowctrl(portp=%p,state=%x)\n", portp, state);
printk("stl_cd1400flowctrl(portp=%x,state=%x)\n", (int) portp, state);
#endif
if (portp == (stlport_t *) NULL) if (portp == (stlport_t *) NULL)
return; return;
...@@ -3702,9 +3606,7 @@ static void stl_cd1400sendflow(stlport_t *portp, int state) ...@@ -3702,9 +3606,7 @@ static void stl_cd1400sendflow(stlport_t *portp, int state)
struct tty_struct *tty; struct tty_struct *tty;
unsigned long flags; unsigned long flags;
#ifdef DEBUG pr_debug("stl_cd1400sendflow(portp=%p,state=%x)\n", portp, state);
printk("stl_cd1400sendflow(portp=%x,state=%x)\n", (int) portp, state);
#endif
if (portp == (stlport_t *) NULL) if (portp == (stlport_t *) NULL)
return; return;
...@@ -3736,9 +3638,7 @@ static void stl_cd1400flush(stlport_t *portp) ...@@ -3736,9 +3638,7 @@ static void stl_cd1400flush(stlport_t *portp)
{ {
unsigned long flags; unsigned long flags;
#ifdef DEBUG pr_debug("stl_cd1400flush(portp=%p)\n", portp);
printk("stl_cd1400flush(portp=%x)\n", (int) portp);
#endif
if (portp == (stlport_t *) NULL) if (portp == (stlport_t *) NULL)
return; return;
...@@ -3765,9 +3665,7 @@ static void stl_cd1400flush(stlport_t *portp) ...@@ -3765,9 +3665,7 @@ static void stl_cd1400flush(stlport_t *portp)
static int stl_cd1400datastate(stlport_t *portp) static int stl_cd1400datastate(stlport_t *portp)
{ {
#ifdef DEBUG pr_debug("stl_cd1400datastate(portp=%p)\n", portp);
printk("stl_cd1400datastate(portp=%x)\n", (int) portp);
#endif
if (portp == (stlport_t *) NULL) if (portp == (stlport_t *) NULL)
return 0; return 0;
...@@ -3785,10 +3683,7 @@ static void stl_cd1400eiointr(stlpanel_t *panelp, unsigned int iobase) ...@@ -3785,10 +3683,7 @@ static void stl_cd1400eiointr(stlpanel_t *panelp, unsigned int iobase)
{ {
unsigned char svrtype; unsigned char svrtype;
#ifdef DEBUG pr_debug("stl_cd1400eiointr(panelp=%p,iobase=%x)\n", panelp, iobase);
printk("stl_cd1400eiointr(panelp=%x,iobase=%x)\n",
(int) panelp, iobase);
#endif
spin_lock(&brd_lock); spin_lock(&brd_lock);
outb(SVRR, iobase); outb(SVRR, iobase);
...@@ -3818,10 +3713,7 @@ static void stl_cd1400echintr(stlpanel_t *panelp, unsigned int iobase) ...@@ -3818,10 +3713,7 @@ static void stl_cd1400echintr(stlpanel_t *panelp, unsigned int iobase)
{ {
unsigned char svrtype; unsigned char svrtype;
#ifdef DEBUG pr_debug("stl_cd1400echintr(panelp=%p,iobase=%x)\n", panelp, iobase);
printk("stl_cd1400echintr(panelp=%x,iobase=%x)\n", (int) panelp,
iobase);
#endif
outb(SVRR, iobase); outb(SVRR, iobase);
svrtype = inb(iobase + EREG_DATA); svrtype = inb(iobase + EREG_DATA);
...@@ -3892,9 +3784,7 @@ static void stl_cd1400txisr(stlpanel_t *panelp, int ioaddr) ...@@ -3892,9 +3784,7 @@ static void stl_cd1400txisr(stlpanel_t *panelp, int ioaddr)
char *head, *tail; char *head, *tail;
unsigned char ioack, srer; unsigned char ioack, srer;
#ifdef DEBUG pr_debug("stl_cd1400txisr(panelp=%p,ioaddr=%x)\n", panelp, ioaddr);
printk("stl_cd1400txisr(panelp=%x,ioaddr=%x)\n", (int) panelp, ioaddr);
#endif
ioack = inb(ioaddr + EREG_TXACK); ioack = inb(ioaddr + EREG_TXACK);
if (((ioack & panelp->ackmask) != 0) || if (((ioack & panelp->ackmask) != 0) ||
...@@ -3974,9 +3864,7 @@ static void stl_cd1400rxisr(stlpanel_t *panelp, int ioaddr) ...@@ -3974,9 +3864,7 @@ static void stl_cd1400rxisr(stlpanel_t *panelp, int ioaddr)
unsigned char status; unsigned char status;
char ch; char ch;
#ifdef DEBUG pr_debug("stl_cd1400rxisr(panelp=%p,ioaddr=%x)\n", panelp, ioaddr);
printk("stl_cd1400rxisr(panelp=%x,ioaddr=%x)\n", (int) panelp, ioaddr);
#endif
ioack = inb(ioaddr + EREG_RXACK); ioack = inb(ioaddr + EREG_RXACK);
if ((ioack & panelp->ackmask) != 0) { if ((ioack & panelp->ackmask) != 0) {
...@@ -4072,9 +3960,7 @@ static void stl_cd1400mdmisr(stlpanel_t *panelp, int ioaddr) ...@@ -4072,9 +3960,7 @@ static void stl_cd1400mdmisr(stlpanel_t *panelp, int ioaddr)
unsigned int ioack; unsigned int ioack;
unsigned char misr; unsigned char misr;
#ifdef DEBUG pr_debug("stl_cd1400mdmisr(panelp=%p)\n", panelp);
printk("stl_cd1400mdmisr(panelp=%x)\n", (int) panelp);
#endif
ioack = inb(ioaddr + EREG_MDACK); ioack = inb(ioaddr + EREG_MDACK);
if (((ioack & panelp->ackmask) != 0) || if (((ioack & panelp->ackmask) != 0) ||
...@@ -4161,10 +4047,7 @@ static int stl_sc26198panelinit(stlbrd_t *brdp, stlpanel_t *panelp) ...@@ -4161,10 +4047,7 @@ static int stl_sc26198panelinit(stlbrd_t *brdp, stlpanel_t *panelp)
int chipmask, i; int chipmask, i;
int nrchips, ioaddr; int nrchips, ioaddr;
#ifdef DEBUG pr_debug("stl_sc26198panelinit(brdp=%p,panelp=%p)\n", brdp, panelp);
printk("stl_sc26198panelinit(brdp=%x,panelp=%x)\n",
(int) brdp, (int) panelp);
#endif
BRDENABLE(panelp->brdnr, panelp->pagenr); BRDENABLE(panelp->brdnr, panelp->pagenr);
...@@ -4206,10 +4089,8 @@ static int stl_sc26198panelinit(stlbrd_t *brdp, stlpanel_t *panelp) ...@@ -4206,10 +4089,8 @@ static int stl_sc26198panelinit(stlbrd_t *brdp, stlpanel_t *panelp)
static void stl_sc26198portinit(stlbrd_t *brdp, stlpanel_t *panelp, stlport_t *portp) static void stl_sc26198portinit(stlbrd_t *brdp, stlpanel_t *panelp, stlport_t *portp)
{ {
#ifdef DEBUG pr_debug("stl_sc26198portinit(brdp=%p,panelp=%p,portp=%p)\n", brdp,
printk("stl_sc26198portinit(brdp=%x,panelp=%x,portp=%x)\n", panelp, portp);
(int) brdp, (int) panelp, (int) portp);
#endif
if ((brdp == (stlbrd_t *) NULL) || (panelp == (stlpanel_t *) NULL) || if ((brdp == (stlbrd_t *) NULL) || (panelp == (stlpanel_t *) NULL) ||
(portp == (stlport_t *) NULL)) (portp == (stlport_t *) NULL))
...@@ -4383,15 +4264,13 @@ static void stl_sc26198setport(stlport_t *portp, struct termios *tiosp) ...@@ -4383,15 +4264,13 @@ static void stl_sc26198setport(stlport_t *portp, struct termios *tiosp)
* them all up. * them all up.
*/ */
#ifdef DEBUG pr_debug("SETPORT: portnr=%d panelnr=%d brdnr=%d\n",
printk("SETPORT: portnr=%d panelnr=%d brdnr=%d\n",
portp->portnr, portp->panelnr, portp->brdnr); portp->portnr, portp->panelnr, portp->brdnr);
printk(" mr0=%x mr1=%x mr2=%x clk=%x\n", mr0, mr1, mr2, clk); pr_debug(" mr0=%x mr1=%x mr2=%x clk=%x\n", mr0, mr1, mr2, clk);
printk(" iopr=%x imron=%x imroff=%x\n", iopr, imron, imroff); pr_debug(" iopr=%x imron=%x imroff=%x\n", iopr, imron, imroff);
printk(" schr1=%x schr2=%x schr3=%x schr4=%x\n", pr_debug(" schr1=%x schr2=%x schr3=%x schr4=%x\n",
tiosp->c_cc[VSTART], tiosp->c_cc[VSTOP], tiosp->c_cc[VSTART], tiosp->c_cc[VSTOP],
tiosp->c_cc[VSTART], tiosp->c_cc[VSTOP]); tiosp->c_cc[VSTART], tiosp->c_cc[VSTOP]);
#endif
spin_lock_irqsave(&brd_lock, flags); spin_lock_irqsave(&brd_lock, flags);
BRDENABLE(portp->brdnr, portp->pagenr); BRDENABLE(portp->brdnr, portp->pagenr);
...@@ -4434,10 +4313,8 @@ static void stl_sc26198setsignals(stlport_t *portp, int dtr, int rts) ...@@ -4434,10 +4313,8 @@ static void stl_sc26198setsignals(stlport_t *portp, int dtr, int rts)
unsigned char iopioron, iopioroff; unsigned char iopioron, iopioroff;
unsigned long flags; unsigned long flags;
#ifdef DEBUG pr_debug("stl_sc26198setsignals(portp=%p,dtr=%d,rts=%d)\n", portp,
printk("stl_sc26198setsignals(portp=%x,dtr=%d,rts=%d)\n", dtr, rts);
(int) portp, dtr, rts);
#endif
iopioron = 0; iopioron = 0;
iopioroff = 0; iopioroff = 0;
...@@ -4470,9 +4347,7 @@ static int stl_sc26198getsignals(stlport_t *portp) ...@@ -4470,9 +4347,7 @@ static int stl_sc26198getsignals(stlport_t *portp)
unsigned long flags; unsigned long flags;
int sigs; int sigs;
#ifdef DEBUG pr_debug("stl_sc26198getsignals(portp=%p)\n", portp);
printk("stl_sc26198getsignals(portp=%x)\n", (int) portp);
#endif
spin_lock_irqsave(&brd_lock, flags); spin_lock_irqsave(&brd_lock, flags);
BRDENABLE(portp->brdnr, portp->pagenr); BRDENABLE(portp->brdnr, portp->pagenr);
...@@ -4500,10 +4375,7 @@ static void stl_sc26198enablerxtx(stlport_t *portp, int rx, int tx) ...@@ -4500,10 +4375,7 @@ static void stl_sc26198enablerxtx(stlport_t *portp, int rx, int tx)
unsigned char ccr; unsigned char ccr;
unsigned long flags; unsigned long flags;
#ifdef DEBUG pr_debug("stl_sc26198enablerxtx(portp=%p,rx=%d,tx=%d)\n", portp, rx,tx);
printk("stl_sc26198enablerxtx(portp=%x,rx=%d,tx=%d)\n",
(int) portp, rx, tx);
#endif
ccr = portp->crenable; ccr = portp->crenable;
if (tx == 0) if (tx == 0)
...@@ -4534,10 +4406,7 @@ static void stl_sc26198startrxtx(stlport_t *portp, int rx, int tx) ...@@ -4534,10 +4406,7 @@ static void stl_sc26198startrxtx(stlport_t *portp, int rx, int tx)
unsigned char imr; unsigned char imr;
unsigned long flags; unsigned long flags;
#ifdef DEBUG pr_debug("stl_sc26198startrxtx(portp=%p,rx=%d,tx=%d)\n", portp, rx, tx);
printk("stl_sc26198startrxtx(portp=%x,rx=%d,tx=%d)\n",
(int) portp, rx, tx);
#endif
imr = portp->imr; imr = portp->imr;
if (tx == 0) if (tx == 0)
...@@ -4569,9 +4438,7 @@ static void stl_sc26198disableintrs(stlport_t *portp) ...@@ -4569,9 +4438,7 @@ static void stl_sc26198disableintrs(stlport_t *portp)
{ {
unsigned long flags; unsigned long flags;
#ifdef DEBUG pr_debug("stl_sc26198disableintrs(portp=%p)\n", portp);
printk("stl_sc26198disableintrs(portp=%x)\n", (int) portp);
#endif
spin_lock_irqsave(&brd_lock, flags); spin_lock_irqsave(&brd_lock, flags);
BRDENABLE(portp->brdnr, portp->pagenr); BRDENABLE(portp->brdnr, portp->pagenr);
...@@ -4587,9 +4454,7 @@ static void stl_sc26198sendbreak(stlport_t *portp, int len) ...@@ -4587,9 +4454,7 @@ static void stl_sc26198sendbreak(stlport_t *portp, int len)
{ {
unsigned long flags; unsigned long flags;
#ifdef DEBUG pr_debug("stl_sc26198sendbreak(portp=%p,len=%d)\n", portp, len);
printk("stl_sc26198sendbreak(portp=%x,len=%d)\n", (int) portp, len);
#endif
spin_lock_irqsave(&brd_lock, flags); spin_lock_irqsave(&brd_lock, flags);
BRDENABLE(portp->brdnr, portp->pagenr); BRDENABLE(portp->brdnr, portp->pagenr);
...@@ -4615,9 +4480,7 @@ static void stl_sc26198flowctrl(stlport_t *portp, int state) ...@@ -4615,9 +4480,7 @@ static void stl_sc26198flowctrl(stlport_t *portp, int state)
unsigned long flags; unsigned long flags;
unsigned char mr0; unsigned char mr0;
#ifdef DEBUG pr_debug("stl_sc26198flowctrl(portp=%p,state=%x)\n", portp, state);
printk("stl_sc26198flowctrl(portp=%x,state=%x)\n", (int) portp, state);
#endif
if (portp == (stlport_t *) NULL) if (portp == (stlport_t *) NULL)
return; return;
...@@ -4686,9 +4549,7 @@ static void stl_sc26198sendflow(stlport_t *portp, int state) ...@@ -4686,9 +4549,7 @@ static void stl_sc26198sendflow(stlport_t *portp, int state)
unsigned long flags; unsigned long flags;
unsigned char mr0; unsigned char mr0;
#ifdef DEBUG pr_debug("stl_sc26198sendflow(portp=%p,state=%x)\n", portp, state);
printk("stl_sc26198sendflow(portp=%x,state=%x)\n", (int) portp, state);
#endif
if (portp == (stlport_t *) NULL) if (portp == (stlport_t *) NULL)
return; return;
...@@ -4725,9 +4586,7 @@ static void stl_sc26198flush(stlport_t *portp) ...@@ -4725,9 +4586,7 @@ static void stl_sc26198flush(stlport_t *portp)
{ {
unsigned long flags; unsigned long flags;
#ifdef DEBUG pr_debug("stl_sc26198flush(portp=%p)\n", portp);
printk("stl_sc26198flush(portp=%x)\n", (int) portp);
#endif
if (portp == (stlport_t *) NULL) if (portp == (stlport_t *) NULL)
return; return;
...@@ -4756,9 +4615,7 @@ static int stl_sc26198datastate(stlport_t *portp) ...@@ -4756,9 +4615,7 @@ static int stl_sc26198datastate(stlport_t *portp)
unsigned long flags; unsigned long flags;
unsigned char sr; unsigned char sr;
#ifdef DEBUG pr_debug("stl_sc26198datastate(portp=%p)\n", portp);
printk("stl_sc26198datastate(portp=%x)\n", (int) portp);
#endif
if (portp == (stlport_t *) NULL) if (portp == (stlport_t *) NULL)
return 0; return 0;
...@@ -4785,9 +4642,7 @@ static void stl_sc26198wait(stlport_t *portp) ...@@ -4785,9 +4642,7 @@ static void stl_sc26198wait(stlport_t *portp)
{ {
int i; int i;
#ifdef DEBUG pr_debug("stl_sc26198wait(portp=%p)\n", portp);
printk("stl_sc26198wait(portp=%x)\n", (int) portp);
#endif
if (portp == (stlport_t *) NULL) if (portp == (stlport_t *) NULL)
return; return;
...@@ -4867,9 +4722,7 @@ static void stl_sc26198txisr(stlport_t *portp) ...@@ -4867,9 +4722,7 @@ static void stl_sc26198txisr(stlport_t *portp)
int len, stlen; int len, stlen;
char *head, *tail; char *head, *tail;
#ifdef DEBUG pr_debug("stl_sc26198txisr(portp=%p)\n", portp);
printk("stl_sc26198txisr(portp=%x)\n", (int) portp);
#endif
ioaddr = portp->ioaddr; ioaddr = portp->ioaddr;
head = portp->tx.head; head = portp->tx.head;
...@@ -4928,9 +4781,7 @@ static void stl_sc26198rxisr(stlport_t *portp, unsigned int iack) ...@@ -4928,9 +4781,7 @@ static void stl_sc26198rxisr(stlport_t *portp, unsigned int iack)
struct tty_struct *tty; struct tty_struct *tty;
unsigned int len, buflen, ioaddr; unsigned int len, buflen, ioaddr;
#ifdef DEBUG pr_debug("stl_sc26198rxisr(portp=%p,iack=%x)\n", portp, iack);
printk("stl_sc26198rxisr(portp=%x,iack=%x)\n", (int) portp, iack);
#endif
tty = portp->tty; tty = portp->tty;
ioaddr = portp->ioaddr; ioaddr = portp->ioaddr;
...@@ -5074,9 +4925,7 @@ static void stl_sc26198otherisr(stlport_t *portp, unsigned int iack) ...@@ -5074,9 +4925,7 @@ static void stl_sc26198otherisr(stlport_t *portp, unsigned int iack)
{ {
unsigned char cir, ipr, xisr; unsigned char cir, ipr, xisr;
#ifdef DEBUG pr_debug("stl_sc26198otherisr(portp=%p,iack=%x)\n", portp, iack);
printk("stl_sc26198otherisr(portp=%x,iack=%x)\n", (int) portp, iack);
#endif
cir = stl_sc26198getglobreg(portp, CIR); cir = stl_sc26198getglobreg(portp, CIR);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment