|
@@ -503,7 +503,7 @@ dm9000_release_board(struct platform_device *pdev, struct board_info *db)
|
|
/*
|
|
/*
|
|
* Search DM9000 board, allocate space and register it
|
|
* Search DM9000 board, allocate space and register it
|
|
*/
|
|
*/
|
|
-static int
|
|
|
|
|
|
+static int __devinit
|
|
dm9000_probe(struct platform_device *pdev)
|
|
dm9000_probe(struct platform_device *pdev)
|
|
{
|
|
{
|
|
struct dm9000_plat_data *pdata = pdev->dev.platform_data;
|
|
struct dm9000_plat_data *pdata = pdev->dev.platform_data;
|
|
@@ -1372,7 +1372,7 @@ dm9000_drv_resume(struct platform_device *dev)
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
|
|
-static int
|
|
|
|
|
|
+static int __devexit
|
|
dm9000_drv_remove(struct platform_device *pdev)
|
|
dm9000_drv_remove(struct platform_device *pdev)
|
|
{
|
|
{
|
|
struct net_device *ndev = platform_get_drvdata(pdev);
|
|
struct net_device *ndev = platform_get_drvdata(pdev);
|
|
@@ -1393,7 +1393,7 @@ static struct platform_driver dm9000_driver = {
|
|
.owner = THIS_MODULE,
|
|
.owner = THIS_MODULE,
|
|
},
|
|
},
|
|
.probe = dm9000_probe,
|
|
.probe = dm9000_probe,
|
|
- .remove = dm9000_drv_remove,
|
|
|
|
|
|
+ .remove = __devexit_p(dm9000_drv_remove),
|
|
.suspend = dm9000_drv_suspend,
|
|
.suspend = dm9000_drv_suspend,
|
|
.resume = dm9000_drv_resume,
|
|
.resume = dm9000_drv_resume,
|
|
};
|
|
};
|