Patch(?) to make linux-2.3.27/drivers/isdn/eicon/eicon_mod.c compile

Adam J. Richter (adam@yggdrasil.com)
Fri, 12 Nov 1999 03:20:19 -0800


linux-2.3.27/drivers/isdn/eicon/eicon_mod.c does not compile
because it includes some calls to eicon_log that pass a parameter
"card", which is not defined. Changing the calls to printk's makes
the module compile, although I have not investigated why there is a
separate logging facility for a single device driver module.

Adam J. Richter __ ______________ 4880 Stevens Creek Blvd, Suite 104
adam@yggdrasil.com \ / San Jose, California 95129-1034
+1 408 261-6630 | g g d r a s i l United States of America
fax +1 408 261-6631 "Free Software For The Rest Of Us."
---------------------CUT HERE--------------------------------------------
Index: drivers/isdn/eicon/eicon_mod.c
===================================================================
RCS file: /usr/src.repository/repository/linux-2.3/drivers/isdn/eicon/eicon_mod.c,v
retrieving revision 1.1.1.6
diff -u -r1.1.1.6 eicon_mod.c
--- eicon_mod.c 1999/11/11 17:45:00 1.1.1.6
+++ eicon_mod.c 1999/11/12 10:21:45
@@ -1382,7 +1382,7 @@
printk(KERN_INFO
"eicon: No MCA bus, ISDN-interfaces not probed.\n");
} else {
- eicon_log(card, 8,
+ printk(KERN_INFO
"eicon_mca_find_card, irq=%d.\n",
irq);
if (!eicon_mca_find_card(0, membase, irq, id))
@@ -1511,7 +1511,7 @@
{
int j, curr_slot = 0;

- eicon_log(card, 8,
+ printk(KERN_INFO
"eicon_mca_find_card type: %d, membase: %#x, irq %d \n",
type, membase, irq);
/* find a no-driver-assigned eicon card */
@@ -1578,7 +1578,7 @@
int irq_array1[]={3,4,0,0,2,10,11,12};

adf_pos0 = mca_read_stored_pos(slot,2);
- eicon_log(card, 8,
+ printk(KERN_INFO
"eicon_mca_probe irq=%d, membase=%d\n",
irq,
membase);
@@ -1649,7 +1649,7 @@
/* reset card */
outb_p(0,cards_io+1);

- eicon_log(card, 8, "eicon_addcard: successful for slot # %d.\n",
+ printk(KERN_INFO "eicon_addcard: successful for slot # %d.\n",
cards->mca_slot+1);
return 0 ; /* eicon_addcard hat eine Karte zugefuegt */
} else {

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/