summaryrefslogtreecommitdiff
path: root/include/linux/arcdevice.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2003-07-20 15:31:16 -0700
committerDavid S. Miller <davem@nuts.ninka.net>2003-07-20 15:31:16 -0700
commit03eb6d115a81b00d3bd01ed2fc2618dfaed416b7 (patch)
tree45003e02701fd4e70cc0695a0851375da5c07af7 /include/linux/arcdevice.h
parent71a82136d4b0ed91188a1864b4125885454d2b8e (diff)
[ARCNET]: Fix module refcounting.
Diffstat (limited to 'include/linux/arcdevice.h')
-rw-r--r--include/linux/arcdevice.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/arcdevice.h b/include/linux/arcdevice.h
index a8672f0ddeb6..66c7495e1834 100644
--- a/include/linux/arcdevice.h
+++ b/include/linux/arcdevice.h
@@ -291,12 +291,13 @@ struct arcnet_local {
/* hardware-specific functions */
struct {
+ struct module *owner;
void (*command) (struct net_device * dev, int cmd);
int (*status) (struct net_device * dev);
void (*intmask) (struct net_device * dev, int mask);
bool (*reset) (struct net_device * dev, bool really_reset);
- void (*open_close) (struct net_device * dev, bool open);
- void (*open_close_ll) (struct net_device * dev, bool open);
+ void (*open) (struct net_device * dev);
+ void (*close) (struct net_device * dev);
void (*copy_to_card) (struct net_device * dev, int bufnum, int offset,
void *buf, int count);
@@ -312,7 +313,6 @@ struct arcnet_local {
#define ACOMMAND(x) (lp->hw.command(dev, (x)))
#define ASTATUS() (lp->hw.status(dev))
#define AINTMASK(x) (lp->hw.intmask(dev, (x)))
-#define ARCOPEN(x) (lp->hw.open_close(dev, (x)))