Skip to contentSkip to conversation

sppp - fix sealevel

PATCH New Stephen Hemminger 1 participant 1 message Oct 3, 2003

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sppp - fix sealevel

My earlier change broke the if_ptr assumption used by SPPP drivers. This makes sealevel driver do if_ptr like it used to.

drivers/net/wan/sealevel.c +2 -0
diff -Nru a/drivers/net/wan/sealevel.c b/drivers/net/wan/sealevel.c
@@ -31,6 +31,7 @@
 
 struct slvl_device
 {
+	void *if_ptr;	/* General purpose pointer (used by SPPP) */
 	struct z8530_channel *chan;
 	struct ppp_device pppdev;
 	int channel;
@@ -238,6 +239,7 @@
 		return NULL;
 
 	sv = d->priv;
+	sv->if_ptr = &sv->pppdev;
 	sv->pppdev.dev = d;
 	d->base_addr = iobase;
 	d->irq = irq;