Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 28843
b: refs/heads/master
c: 4a31e34
h: refs/heads/master
i:
  28841: 0204672
  28839: 57b5866
v: v3
  • Loading branch information
Krzysztof Halasa authored and Jeff Garzik committed Jun 23, 2006
1 parent de760e5 commit 123b9d6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 24 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: aa95abefccc25efea5c8654bc3475e8161319b94
refs/heads/master: 4a31e348e3ecaf54c50240109ac4574b180f8840
24 changes: 2 additions & 22 deletions trunk/drivers/net/wan/hdlc_generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ int hdlc_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
}
}

static void hdlc_setup(struct net_device *dev)
void hdlc_setup(struct net_device *dev)
{
hdlc_device *hdlc = dev_to_hdlc(dev);

Expand Down Expand Up @@ -288,26 +288,6 @@ struct net_device *alloc_hdlcdev(void *priv)
return dev;
}

int register_hdlc_device(struct net_device *dev)
{
int result = dev_alloc_name(dev, "hdlc%d");
if (result < 0)
return result;

result = register_netdev(dev);
if (result != 0)
return -EIO;

#if 0
if (netif_carrier_ok(dev))
netif_carrier_off(dev); /* no carrier until DCD goes up */
#endif

return 0;
}



void unregister_hdlc_device(struct net_device *dev)
{
rtnl_lock();
Expand All @@ -326,8 +306,8 @@ EXPORT_SYMBOL(hdlc_open);
EXPORT_SYMBOL(hdlc_close);
EXPORT_SYMBOL(hdlc_set_carrier);
EXPORT_SYMBOL(hdlc_ioctl);
EXPORT_SYMBOL(hdlc_setup);
EXPORT_SYMBOL(alloc_hdlcdev);
EXPORT_SYMBOL(register_hdlc_device);
EXPORT_SYMBOL(unregister_hdlc_device);

static struct packet_type hdlc_packet_type = {
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/linux/hdlc.h
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ int hdlc_x25_ioctl(struct net_device *dev, struct ifreq *ifr);
int hdlc_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd);

/* Must be used by hardware driver on module startup/exit */
int register_hdlc_device(struct net_device *dev);
#define register_hdlc_device(dev) register_netdev(dev)
void unregister_hdlc_device(struct net_device *dev);

struct net_device *alloc_hdlcdev(void *priv);
Expand Down

0 comments on commit 123b9d6

Please sign in to comment.