Commit dde09758 authored by Stephen Hemminger's avatar Stephen Hemminger Committed by David S. Miller

atm: convert clip driver to net_device_ops

Signed-off-by: default avatarStephen Hemminger <shemminger@vyatta.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 788dee0a
...@@ -552,10 +552,13 @@ static int clip_setentry(struct atm_vcc *vcc, __be32 ip) ...@@ -552,10 +552,13 @@ static int clip_setentry(struct atm_vcc *vcc, __be32 ip)
return error; return error;
} }
static const struct net_device_ops clip_netdev_ops = {
.ndo_start_xmit = clip_start_xmit,
};
static void clip_setup(struct net_device *dev) static void clip_setup(struct net_device *dev)
{ {
dev->hard_start_xmit = clip_start_xmit; dev->netdev_ops = &clip_netdev_ops;
/* sg_xmit ... */
dev->type = ARPHRD_ATM; dev->type = ARPHRD_ATM;
dev->hard_header_len = RFC1483LLC_LEN; dev->hard_header_len = RFC1483LLC_LEN;
dev->mtu = RFC1626_MTU; dev->mtu = RFC1626_MTU;
...@@ -615,7 +618,7 @@ static int clip_device_event(struct notifier_block *this, unsigned long event, ...@@ -615,7 +618,7 @@ static int clip_device_event(struct notifier_block *this, unsigned long event,
} }
/* ignore non-CLIP devices */ /* ignore non-CLIP devices */
if (dev->type != ARPHRD_ATM || dev->hard_start_xmit != clip_start_xmit) if (dev->type != ARPHRD_ATM || dev->netdev_ops != &clip_netdev_ops)
return NOTIFY_DONE; return NOTIFY_DONE;
switch (event) { switch (event) {
......
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