Commit 40f4e407 authored by Alan Cox's avatar Alan Cox Committed by Linus Torvalds

[PATCH] remove 2.2 compatmac stuff from rio driver

parent f3d26f44
...@@ -59,7 +59,6 @@ ...@@ -59,7 +59,6 @@
#include <linux/miscdevice.h> #include <linux/miscdevice.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/compatmac.h>
#include <linux/generic_serial.h> #include <linux/generic_serial.h>
#if BITS_PER_LONG != 32 #if BITS_PER_LONG != 32
...@@ -725,14 +724,14 @@ static int rio_ioctl (struct tty_struct * tty, struct file * filp, ...@@ -725,14 +724,14 @@ static int rio_ioctl (struct tty_struct * tty, struct file * filp,
switch (cmd) { switch (cmd) {
#if 0 #if 0
case TIOCGSOFTCAR: case TIOCGSOFTCAR:
rc = Put_user(((tty->termios->c_cflag & CLOCAL) ? 1 : 0), rc = put_user(((tty->termios->c_cflag & CLOCAL) ? 1 : 0),
(unsigned int *) arg); (unsigned int *) arg);
break; break;
#endif #endif
case TIOCSSOFTCAR: case TIOCSSOFTCAR:
if ((rc = verify_area(VERIFY_READ, (void *) arg, if ((rc = verify_area(VERIFY_READ, (void *) arg,
sizeof(int))) == 0) { sizeof(int))) == 0) {
Get_user(ival, (unsigned int *) arg); get_user(ival, (unsigned int *) arg);
tty->termios->c_cflag = tty->termios->c_cflag =
(tty->termios->c_cflag & ~CLOCAL) | (tty->termios->c_cflag & ~CLOCAL) |
(ival ? CLOCAL : 0); (ival ? CLOCAL : 0);
...@@ -784,7 +783,7 @@ static int rio_ioctl (struct tty_struct * tty, struct file * filp, ...@@ -784,7 +783,7 @@ static int rio_ioctl (struct tty_struct * tty, struct file * filp,
case TIOCMBIS: case TIOCMBIS:
if ((rc = verify_area(VERIFY_READ, (void *) arg, if ((rc = verify_area(VERIFY_READ, (void *) arg,
sizeof(unsigned int))) == 0) { sizeof(unsigned int))) == 0) {
Get_user(ival, (unsigned int *) arg); get_user(ival, (unsigned int *) arg);
rio_setsignals(port, ((ival & TIOCM_DTR) ? 1 : -1), rio_setsignals(port, ((ival & TIOCM_DTR) ? 1 : -1),
((ival & TIOCM_RTS) ? 1 : -1)); ((ival & TIOCM_RTS) ? 1 : -1));
} }
...@@ -792,7 +791,7 @@ static int rio_ioctl (struct tty_struct * tty, struct file * filp, ...@@ -792,7 +791,7 @@ static int rio_ioctl (struct tty_struct * tty, struct file * filp,
case TIOCMBIC: case TIOCMBIC:
if ((rc = verify_area(VERIFY_READ, (void *) arg, if ((rc = verify_area(VERIFY_READ, (void *) arg,
sizeof(unsigned int))) == 0) { sizeof(unsigned int))) == 0) {
Get_user(ival, (unsigned int *) arg); get_user(ival, (unsigned int *) arg);
rio_setsignals(port, ((ival & TIOCM_DTR) ? 0 : -1), rio_setsignals(port, ((ival & TIOCM_DTR) ? 0 : -1),
((ival & TIOCM_RTS) ? 0 : -1)); ((ival & TIOCM_RTS) ? 0 : -1));
} }
...@@ -800,7 +799,7 @@ static int rio_ioctl (struct tty_struct * tty, struct file * filp, ...@@ -800,7 +799,7 @@ static int rio_ioctl (struct tty_struct * tty, struct file * filp,
case TIOCMSET: case TIOCMSET:
if ((rc = verify_area(VERIFY_READ, (void *) arg, if ((rc = verify_area(VERIFY_READ, (void *) arg,
sizeof(unsigned int))) == 0) { sizeof(unsigned int))) == 0) {
Get_user(ival, (unsigned int *) arg); get_user(ival, (unsigned int *) arg);
rio_setsignals(port, ((ival & TIOCM_DTR) ? 1 : 0), rio_setsignals(port, ((ival & TIOCM_DTR) ? 1 : 0),
((ival & TIOCM_RTS) ? 1 : 0)); ((ival & TIOCM_RTS) ? 1 : 0));
} }
...@@ -1126,7 +1125,7 @@ void fix_rio_pci (PDEV) ...@@ -1126,7 +1125,7 @@ void fix_rio_pci (PDEV)
t, CNTRL_REG_GOODVALUE); t, CNTRL_REG_GOODVALUE);
writel (CNTRL_REG_GOODVALUE, rebase + CNTRL_REG_OFFSET); writel (CNTRL_REG_GOODVALUE, rebase + CNTRL_REG_OFFSET);
} }
my_iounmap (hwbase, rebase); iounmap((char*) rebase);
} }
#endif #endif
...@@ -1201,7 +1200,7 @@ static int __init rio_init(void) ...@@ -1201,7 +1200,7 @@ static int __init rio_init(void)
hp = &p->RIOHosts[p->RIONumHosts]; hp = &p->RIOHosts[p->RIONumHosts];
hp->PaddrP = tint & PCI_BASE_ADDRESS_MEM_MASK; hp->PaddrP = tint & PCI_BASE_ADDRESS_MEM_MASK;
hp->Ivec = get_irq (pdev); hp->Ivec = pdev->irq;
if (((1 << hp->Ivec) & rio_irqmask) == 0) if (((1 << hp->Ivec) & rio_irqmask) == 0)
hp->Ivec = 0; hp->Ivec = 0;
hp->CardP = (struct DpRam *) hp->CardP = (struct DpRam *)
...@@ -1234,8 +1233,7 @@ static int __init rio_init(void) ...@@ -1234,8 +1233,7 @@ static int __init rio_init(void)
p->RIONumHosts++; p->RIONumHosts++;
found++; found++;
} else { } else {
my_iounmap (p->RIOHosts[p->RIONumHosts].PaddrP, iounmap((char*) (p->RIOHosts[p->RIONumHosts].Caddr));
p->RIOHosts[p->RIONumHosts].Caddr);
} }
#ifdef TWO_ZERO #ifdef TWO_ZERO
...@@ -1272,7 +1270,7 @@ static int __init rio_init(void) ...@@ -1272,7 +1270,7 @@ static int __init rio_init(void)
hp = &p->RIOHosts[p->RIONumHosts]; hp = &p->RIOHosts[p->RIONumHosts];
hp->PaddrP = tint & PCI_BASE_ADDRESS_MEM_MASK; hp->PaddrP = tint & PCI_BASE_ADDRESS_MEM_MASK;
hp->Ivec = get_irq (pdev); hp->Ivec = pdev->irq;
if (((1 << hp->Ivec) & rio_irqmask) == 0) if (((1 << hp->Ivec) & rio_irqmask) == 0)
hp->Ivec = 0; hp->Ivec = 0;
hp->Ivec |= 0x8000; /* Mark as non-sharable */ hp->Ivec |= 0x8000; /* Mark as non-sharable */
...@@ -1307,8 +1305,7 @@ static int __init rio_init(void) ...@@ -1307,8 +1305,7 @@ static int __init rio_init(void)
p->RIONumHosts++; p->RIONumHosts++;
found++; found++;
} else { } else {
my_iounmap (p->RIOHosts[p->RIONumHosts].PaddrP, iounmap((char*) (p->RIOHosts[p->RIONumHosts].Caddr));
p->RIOHosts[p->RIONumHosts].Caddr);
} }
#else #else
printk (KERN_ERR "Found an older RIO PCI card, but the driver is not " printk (KERN_ERR "Found an older RIO PCI card, but the driver is not "
...@@ -1361,7 +1358,7 @@ static int __init rio_init(void) ...@@ -1361,7 +1358,7 @@ static int __init rio_init(void)
} }
if (!okboard) if (!okboard)
my_iounmap (hp->PaddrP, hp->Caddr); iounmap ((char*) (hp->Caddr));
} }
} }
......
...@@ -48,7 +48,6 @@ static char *_rioboot_c_sccs_ = "@(#)rioboot.c 1.3"; ...@@ -48,7 +48,6 @@ static char *_rioboot_c_sccs_ = "@(#)rioboot.c 1.3";
#include <linux/termios.h> #include <linux/termios.h>
#include <linux/serial.h> #include <linux/serial.h>
#include <linux/compatmac.h>
#include <linux/generic_serial.h> #include <linux/generic_serial.h>
......
...@@ -47,7 +47,6 @@ static char *_riocmd_c_sccs_ = "@(#)riocmd.c 1.2"; ...@@ -47,7 +47,6 @@ static char *_riocmd_c_sccs_ = "@(#)riocmd.c 1.2";
#include <linux/termios.h> #include <linux/termios.h>
#include <linux/serial.h> #include <linux/serial.h>
#include <linux/compatmac.h>
#include <linux/generic_serial.h> #include <linux/generic_serial.h>
#include "linux_compat.h" #include "linux_compat.h"
......
...@@ -47,7 +47,6 @@ static char *_rioctrl_c_sccs_ = "@(#)rioctrl.c 1.3"; ...@@ -47,7 +47,6 @@ static char *_rioctrl_c_sccs_ = "@(#)rioctrl.c 1.3";
#include <linux/termios.h> #include <linux/termios.h>
#include <linux/serial.h> #include <linux/serial.h>
#include <linux/compatmac.h>
#include <linux/generic_serial.h> #include <linux/generic_serial.h>
......
...@@ -47,7 +47,6 @@ static char *_rioinit_c_sccs_ = "@(#)rioinit.c 1.3"; ...@@ -47,7 +47,6 @@ static char *_rioinit_c_sccs_ = "@(#)rioinit.c 1.3";
#include <linux/termios.h> #include <linux/termios.h>
#include <linux/serial.h> #include <linux/serial.h>
#include <linux/compatmac.h>
#include <linux/generic_serial.h> #include <linux/generic_serial.h>
......
...@@ -48,7 +48,6 @@ static char *_riointr_c_sccs_ = "@(#)riointr.c 1.2"; ...@@ -48,7 +48,6 @@ static char *_riointr_c_sccs_ = "@(#)riointr.c 1.2";
#include <linux/termios.h> #include <linux/termios.h>
#include <linux/serial.h> #include <linux/serial.h>
#include <linux/compatmac.h>
#include <linux/generic_serial.h> #include <linux/generic_serial.h>
#include <linux/delay.h> #include <linux/delay.h>
......
...@@ -48,7 +48,6 @@ static char *_rioparam_c_sccs_ = "@(#)rioparam.c 1.3"; ...@@ -48,7 +48,6 @@ static char *_rioparam_c_sccs_ = "@(#)rioparam.c 1.3";
#include <linux/termios.h> #include <linux/termios.h>
#include <linux/serial.h> #include <linux/serial.h>
#include <linux/compatmac.h>
#include <linux/generic_serial.h> #include <linux/generic_serial.h>
......
...@@ -46,7 +46,6 @@ static char *_rioroute_c_sccs_ = "@(#)rioroute.c 1.3"; ...@@ -46,7 +46,6 @@ static char *_rioroute_c_sccs_ = "@(#)rioroute.c 1.3";
#include <linux/termios.h> #include <linux/termios.h>
#include <linux/serial.h> #include <linux/serial.h>
#include <linux/compatmac.h>
#include <linux/generic_serial.h> #include <linux/generic_serial.h>
......
...@@ -48,7 +48,6 @@ static char *_riotable_c_sccs_ = "@(#)riotable.c 1.2"; ...@@ -48,7 +48,6 @@ static char *_riotable_c_sccs_ = "@(#)riotable.c 1.2";
#include <linux/termios.h> #include <linux/termios.h>
#include <linux/serial.h> #include <linux/serial.h>
#include <linux/compatmac.h>
#include <linux/generic_serial.h> #include <linux/generic_serial.h>
......
...@@ -51,7 +51,6 @@ static char *_riotty_c_sccs_ = "@(#)riotty.c 1.3"; ...@@ -51,7 +51,6 @@ static char *_riotty_c_sccs_ = "@(#)riotty.c 1.3";
#include <linux/serial.h> #include <linux/serial.h>
#include <linux/compatmac.h>
#include <linux/generic_serial.h> #include <linux/generic_serial.h>
......
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