Skip to content

Commit

Permalink
net: fix section mismatch in fec.c
Browse files Browse the repository at this point in the history
fec_enet_init is called by both fec_probe and fec_resume, so it
shouldn't be marked as __init.

Signed-off-by: Steven King <sfking@fdwdc.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Steven King authored and David S. Miller committed Oct 21, 2009
1 parent abf90cc commit 78abcb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/fec.c
Original file line number Diff line number Diff line change
Expand Up @@ -1654,7 +1654,7 @@ static const struct net_device_ops fec_netdev_ops = {
*
* index is only used in legacy code
*/
int __init fec_enet_init(struct net_device *dev, int index)
static int fec_enet_init(struct net_device *dev, int index)
{
struct fec_enet_private *fep = netdev_priv(dev);
struct bufdesc *cbd_base;
Expand Down

0 comments on commit 78abcb1

Please sign in to comment.