Skip to content

Commit

Permalink
net/can/mscan: fix function annotations
Browse files Browse the repository at this point in the history
- use extern where apropriate
- don't export symbols

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Wolfram Sang authored and David S. Miller committed Nov 17, 2009
1 parent 59179ea commit 1712fe5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions drivers/net/can/mscan/mscan.c
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,6 @@ int register_mscandev(struct net_device *dev, int clock_src)

return register_candev(dev);
}
EXPORT_SYMBOL_GPL(register_mscandev);

void unregister_mscandev(struct net_device *dev)
{
Expand All @@ -621,7 +620,6 @@ void unregister_mscandev(struct net_device *dev)
clrbits8(&regs->canctl1, MSCAN_CANE);
unregister_candev(dev);
}
EXPORT_SYMBOL_GPL(unregister_mscandev);

struct net_device *alloc_mscandev(void)
{
Expand Down Expand Up @@ -651,7 +649,6 @@ struct net_device *alloc_mscandev(void)

return dev;
}
EXPORT_SYMBOL_GPL(alloc_mscandev);

MODULE_AUTHOR("Andrey Volkov <avolkov@varma-el.com>");
MODULE_LICENSE("GPL v2");
Expand Down
2 changes: 1 addition & 1 deletion drivers/net/can/mscan/mscan.h
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ struct mscan_priv {
struct napi_struct napi;
};

struct net_device *alloc_mscandev(void);
extern struct net_device *alloc_mscandev(void);
/*
* clock_src:
* 1 = The MSCAN clock source is the onchip Bus Clock.
Expand Down

0 comments on commit 1712fe5

Please sign in to comment.