Commit f78f09f7 authored by Jonas Bonn's avatar Jonas Bonn Committed by David S. Miller

ethoc: add devinit/devexit section initializers

Signed-off-by: default avatarJonas Bonn <jonas@southpole.se>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 08451e25
...@@ -632,7 +632,7 @@ static void ethoc_mdio_poll(struct net_device *dev) ...@@ -632,7 +632,7 @@ static void ethoc_mdio_poll(struct net_device *dev)
{ {
} }
static int ethoc_mdio_probe(struct net_device *dev) static int __devinit ethoc_mdio_probe(struct net_device *dev)
{ {
struct ethoc *priv = netdev_priv(dev); struct ethoc *priv = netdev_priv(dev);
struct phy_device *phy; struct phy_device *phy;
...@@ -871,7 +871,7 @@ static const struct net_device_ops ethoc_netdev_ops = { ...@@ -871,7 +871,7 @@ static const struct net_device_ops ethoc_netdev_ops = {
* ethoc_probe() - initialize OpenCores ethernet MAC * ethoc_probe() - initialize OpenCores ethernet MAC
* pdev: platform device * pdev: platform device
*/ */
static int ethoc_probe(struct platform_device *pdev) static int __devinit ethoc_probe(struct platform_device *pdev)
{ {
struct net_device *netdev = NULL; struct net_device *netdev = NULL;
struct resource *res = NULL; struct resource *res = NULL;
...@@ -1080,7 +1080,7 @@ static int ethoc_probe(struct platform_device *pdev) ...@@ -1080,7 +1080,7 @@ static int ethoc_probe(struct platform_device *pdev)
* ethoc_remove() - shutdown OpenCores ethernet MAC * ethoc_remove() - shutdown OpenCores ethernet MAC
* @pdev: platform device * @pdev: platform device
*/ */
static int ethoc_remove(struct platform_device *pdev) static int __devexit ethoc_remove(struct platform_device *pdev)
{ {
struct net_device *netdev = platform_get_drvdata(pdev); struct net_device *netdev = platform_get_drvdata(pdev);
struct ethoc *priv = netdev_priv(netdev); struct ethoc *priv = netdev_priv(netdev);
...@@ -1121,7 +1121,7 @@ static int ethoc_resume(struct platform_device *pdev) ...@@ -1121,7 +1121,7 @@ static int ethoc_resume(struct platform_device *pdev)
static struct platform_driver ethoc_driver = { static struct platform_driver ethoc_driver = {
.probe = ethoc_probe, .probe = ethoc_probe,
.remove = ethoc_remove, .remove = __devexit_p(ethoc_remove),
.suspend = ethoc_suspend, .suspend = ethoc_suspend,
.resume = ethoc_resume, .resume = ethoc_resume,
.driver = { .driver = {
......
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