diff options
author | Jonas Bonn <jonas@southpole.se> | 2010-07-26 21:45:05 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-07-26 21:45:05 -0400 |
commit | f78f09f76540c9a986bc321a186a291f4bb40925 (patch) | |
tree | 2e801c6ab765ac649fae9676784519f76ead4d62 /drivers/net/ethoc.c | |
parent | 08451e2587dc8d8c34cbbb8edc88a6e4fa8946e6 (diff) |
ethoc: add devinit/devexit section initializers
Signed-off-by: Jonas Bonn <jonas@southpole.se>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethoc.c')
-rw-r--r-- | drivers/net/ethoc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/ethoc.c b/drivers/net/ethoc.c index 38c282e6565b..6d653c459c1f 100644 --- a/drivers/net/ethoc.c +++ b/drivers/net/ethoc.c | |||
@@ -632,7 +632,7 @@ static void ethoc_mdio_poll(struct net_device *dev) | |||
632 | { | 632 | { |
633 | } | 633 | } |
634 | 634 | ||
635 | static int ethoc_mdio_probe(struct net_device *dev) | 635 | static int __devinit ethoc_mdio_probe(struct net_device *dev) |
636 | { | 636 | { |
637 | struct ethoc *priv = netdev_priv(dev); | 637 | struct ethoc *priv = netdev_priv(dev); |
638 | struct phy_device *phy; | 638 | struct phy_device *phy; |
@@ -871,7 +871,7 @@ static const struct net_device_ops ethoc_netdev_ops = { | |||
871 | * ethoc_probe() - initialize OpenCores ethernet MAC | 871 | * ethoc_probe() - initialize OpenCores ethernet MAC |
872 | * pdev: platform device | 872 | * pdev: platform device |
873 | */ | 873 | */ |
874 | static int ethoc_probe(struct platform_device *pdev) | 874 | static int __devinit ethoc_probe(struct platform_device *pdev) |
875 | { | 875 | { |
876 | struct net_device *netdev = NULL; | 876 | struct net_device *netdev = NULL; |
877 | struct resource *res = NULL; | 877 | struct resource *res = NULL; |
@@ -1080,7 +1080,7 @@ out: | |||
1080 | * ethoc_remove() - shutdown OpenCores ethernet MAC | 1080 | * ethoc_remove() - shutdown OpenCores ethernet MAC |
1081 | * @pdev: platform device | 1081 | * @pdev: platform device |
1082 | */ | 1082 | */ |
1083 | static int ethoc_remove(struct platform_device *pdev) | 1083 | static int __devexit ethoc_remove(struct platform_device *pdev) |
1084 | { | 1084 | { |
1085 | struct net_device *netdev = platform_get_drvdata(pdev); | 1085 | struct net_device *netdev = platform_get_drvdata(pdev); |
1086 | struct ethoc *priv = netdev_priv(netdev); | 1086 | struct ethoc *priv = netdev_priv(netdev); |
@@ -1121,7 +1121,7 @@ static int ethoc_resume(struct platform_device *pdev) | |||
1121 | 1121 | ||
1122 | static struct platform_driver ethoc_driver = { | 1122 | static struct platform_driver ethoc_driver = { |
1123 | .probe = ethoc_probe, | 1123 | .probe = ethoc_probe, |
1124 | .remove = ethoc_remove, | 1124 | .remove = __devexit_p(ethoc_remove), |
1125 | .suspend = ethoc_suspend, | 1125 | .suspend = ethoc_suspend, |
1126 | .resume = ethoc_resume, | 1126 | .resume = ethoc_resume, |
1127 | .driver = { | 1127 | .driver = { |