Skip to contentSkip to conversation

DM9000 - minor code cleanups

PATCH New Ben Dooks 1 participant 1 message Jun 13, 2006

Subsystems (2)
lore
Share & tools
lore

Ben Dooks

author
#0 lore raw

PATCH 1/1 DM9000 - minor code cleanups

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.

drivers/net/dm9000.c renamed from linux-2.6.17/linux-2.6.17-rc5/drivers/net/dm9000.c +5 -4
@@ -767,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 */
@@ -1187,13 +1188,14 @@ dm9000_drv_remove(struct platform_device
 }
 
 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