Skip to content

Commit

Permalink
[PATCH] DM9000 - minor code cleanups
Browse files Browse the repository at this point in the history
Ensure the driver's module owner field is
initialised for when this is being built and
loaded as a module.

Also change make the dm9000_tx_done function
static, as it is not exported elsewhere.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
  • Loading branch information
Ben Dooks authored and Jeff Garzik committed Jun 27, 2006
1 parent 19af5a8 commit 5d22a31
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions drivers/net/dm9000.c
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,7 @@ dm9000_stop(struct net_device *ndev)
* receive the packet to upper layer, free the transmitted packet
*/

void
static void
dm9000_tx_done(struct net_device *dev, board_info_t * db)
{
int tx_status = ior(db, DM9000_NSR); /* Got TX status */
Expand Down Expand Up @@ -1188,13 +1188,14 @@ dm9000_drv_remove(struct platform_device *pdev)
}

static struct platform_driver dm9000_driver = {
.driver = {
.name = "dm9000",
.owner = THIS_MODULE,
},
.probe = dm9000_probe,
.remove = dm9000_drv_remove,
.suspend = dm9000_drv_suspend,
.resume = dm9000_drv_resume,
.driver = {
.name = "dm9000",
},
};

static int __init
Expand Down

0 comments on commit 5d22a31

Please sign in to comment.