patch-2.2.5 linux/drivers/sbus/char/sab82532.c
Next file: linux/drivers/scsi/ppa.c
Previous file: linux/drivers/net/myri_sbus.c
Back to the patch index
Back to the overall index
- Lines: 28
- Date:
Thu Mar 25 09:23:34 1999
- Orig file:
v2.2.4/linux/drivers/sbus/char/sab82532.c
- Orig date:
Tue Mar 23 14:35:48 1999
diff -u --recursive --new-file v2.2.4/linux/drivers/sbus/char/sab82532.c linux/drivers/sbus/char/sab82532.c
@@ -1,4 +1,4 @@
-/* $Id: sab82532.c,v 1.28 1999/01/02 16:47:35 davem Exp $
+/* $Id: sab82532.c,v 1.30 1999/03/24 11:34:52 davem Exp $
* sab82532.c: ASYNC Driver for the SIEMENS SAB82532 DUSCC.
*
* Copyright (C) 1997 Eddie C. Dost (ecd@skynet.be)
@@ -2136,7 +2136,7 @@
__initfunc(static inline void show_serial_version(void))
{
- char *revision = "$Revision: 1.28 $";
+ char *revision = "$Revision: 1.30 $";
char *version, *p;
version = strchr(revision, ' ');
@@ -2359,8 +2359,10 @@
restore_flags(flags);
for (i = 0; i < NR_PORTS; i++) {
- if (sab82532_table[i].type != PORT_UNKNOWN)
- release_region(sab82532_table[i].port, 8);
+ struct sab82532 *info = (struct sab82532 *)sab82532_table[i]->driver_data;
+ if (info->type != PORT_UNKNOWN)
+ release_region((unsigned long)info->regs,
+ sizeof(union sab82532_async_regs));
}
if (tmp_buf) {
free_page((unsigned long) tmp_buf);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)