Commit 55150d39 authored by Alexander Viro's avatar Alexander Viro Committed by Stephen Hemminger

[netdrvr iph5526] use SET_MODULE_OWNER; small typedef cleanup

parent 8eae3005
...@@ -259,6 +259,7 @@ static int __init iph5526_probe_pci(struct net_device *dev) ...@@ -259,6 +259,7 @@ static int __init iph5526_probe_pci(struct net_device *dev)
static int __init fcdev_init(struct net_device *dev) static int __init fcdev_init(struct net_device *dev)
{ {
SET_MODULE_OWNER(dev);
dev->open = iph5526_open; dev->open = iph5526_open;
dev->stop = iph5526_close; dev->stop = iph5526_close;
dev->hard_start_xmit = iph5526_send_packet; dev->hard_start_xmit = iph5526_send_packet;
...@@ -2896,14 +2897,12 @@ static void update_EDB_indx(struct fc_info *fi) ...@@ -2896,14 +2897,12 @@ static void update_EDB_indx(struct fc_info *fi)
static int iph5526_open(struct net_device *dev) static int iph5526_open(struct net_device *dev)
{ {
netif_start_queue(dev); netif_start_queue(dev);
MOD_INC_USE_COUNT;
return 0; return 0;
} }
static int iph5526_close(struct net_device *dev) static int iph5526_close(struct net_device *dev)
{ {
netif_stop_queue(dev); netif_stop_queue(dev);
MOD_DEC_USE_COUNT;
return 0; return 0;
} }
......
...@@ -25,7 +25,7 @@ int iph5526_queuecommand(Scsi_Cmnd *Cmnd, void (*done) (Scsi_Cmnd *)); ...@@ -25,7 +25,7 @@ int iph5526_queuecommand(Scsi_Cmnd *Cmnd, void (*done) (Scsi_Cmnd *));
int iph5526_release(struct Scsi_Host *host); int iph5526_release(struct Scsi_Host *host);
int iph5526_abort(Scsi_Cmnd *Cmnd); int iph5526_abort(Scsi_Cmnd *Cmnd);
const char *iph5526_info(struct Scsi_Host *host); const char *iph5526_info(struct Scsi_Host *host);
int iph5526_biosparam(Disk * disk, struct block_device *n, int ip[]); int iph5526_biosparam(struct Scsi_Disk * disk, struct block_device *n, int ip[]);
#endif #endif
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