diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/atm/clip.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/net/atm/clip.c b/net/atm/clip.c index da42fd06b61f..3dc0a3a42a57 100644 --- a/net/atm/clip.c +++ b/net/atm/clip.c | |||
@@ -552,10 +552,13 @@ static int clip_setentry(struct atm_vcc *vcc, __be32 ip) | |||
552 | return error; | 552 | return error; |
553 | } | 553 | } |
554 | 554 | ||
555 | static const struct net_device_ops clip_netdev_ops = { | ||
556 | .ndo_start_xmit = clip_start_xmit, | ||
557 | }; | ||
558 | |||
555 | static void clip_setup(struct net_device *dev) | 559 | static void clip_setup(struct net_device *dev) |
556 | { | 560 | { |
557 | dev->hard_start_xmit = clip_start_xmit; | 561 | dev->netdev_ops = &clip_netdev_ops; |
558 | /* sg_xmit ... */ | ||
559 | dev->type = ARPHRD_ATM; | 562 | dev->type = ARPHRD_ATM; |
560 | dev->hard_header_len = RFC1483LLC_LEN; | 563 | dev->hard_header_len = RFC1483LLC_LEN; |
561 | dev->mtu = RFC1626_MTU; | 564 | dev->mtu = RFC1626_MTU; |
@@ -615,7 +618,7 @@ static int clip_device_event(struct notifier_block *this, unsigned long event, | |||
615 | } | 618 | } |
616 | 619 | ||
617 | /* ignore non-CLIP devices */ | 620 | /* ignore non-CLIP devices */ |
618 | if (dev->type != ARPHRD_ATM || dev->hard_start_xmit != clip_start_xmit) | 621 | if (dev->type != ARPHRD_ATM || dev->netdev_ops != &clip_netdev_ops) |
619 | return NOTIFY_DONE; | 622 | return NOTIFY_DONE; |
620 | 623 | ||
621 | switch (event) { | 624 | switch (event) { |