Commit 247584b5 authored by Stephen Hemminger's avatar Stephen Hemminger

[NET]: Fix sealevel regression.

My earlier change broke the if_ptr assumption used by SPPP drivers.
This makes sealevel driver do if_ptr like it used to.
parent 43dc8a31
...@@ -31,6 +31,7 @@ ...@@ -31,6 +31,7 @@
struct slvl_device struct slvl_device
{ {
void *if_ptr; /* General purpose pointer (used by SPPP) */
struct z8530_channel *chan; struct z8530_channel *chan;
struct ppp_device pppdev; struct ppp_device pppdev;
int channel; int channel;
...@@ -238,6 +239,7 @@ static inline struct slvl_device *slvl_alloc(int iobase, int irq) ...@@ -238,6 +239,7 @@ static inline struct slvl_device *slvl_alloc(int iobase, int irq)
return NULL; return NULL;
sv = d->priv; sv = d->priv;
sv->if_ptr = &sv->pppdev;
sv->pppdev.dev = d; sv->pppdev.dev = d;
d->base_addr = iobase; d->base_addr = iobase;
d->irq = irq; d->irq = irq;
......
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