Commit e4c97861 authored by David Gibson's avatar David Gibson Committed by Jeff Garzik

[PATCH] orinoco merge preliminaries - make things static

Make various functions and variables static which always should have
been, but weren't.
Signed-off-by: default avatarDavid Gibson <hermes@gibson.dropbear.id.au>

Index: working-2.6/drivers/net/wireless/orinoco_tmd.c
===================================================================
parent 693d86b0
......@@ -507,7 +507,7 @@ MODULE_PARM(suppress_linkstatus, "i");
/********************************************************************/
/* The frequency of each channel in MHz */
const long channel_frequency[] = {
static const long channel_frequency[] = {
2412, 2417, 2422, 2427, 2432, 2437, 2442,
2447, 2452, 2457, 2462, 2467, 2472, 2484
};
......@@ -515,7 +515,7 @@ const long channel_frequency[] = {
/* This tables gives the actual meanings of the bitrate IDs returned
* by the firmware. */
struct {
static struct {
int bitrate; /* in 100s of kilobits */
int automatic;
u16 agere_txratectrl;
......@@ -643,14 +643,14 @@ int orinoco_stop(struct net_device *dev)
return err;
}
struct net_device_stats *orinoco_get_stats(struct net_device *dev)
static struct net_device_stats *orinoco_get_stats(struct net_device *dev)
{
struct orinoco_private *priv = netdev_priv(dev);
return &priv->stats;
}
struct iw_statistics *orinoco_get_wireless_stats(struct net_device *dev)
static struct iw_statistics *orinoco_get_wireless_stats(struct net_device *dev)
{
struct orinoco_private *priv = netdev_priv(dev);
hermes_t *hw = &priv->hw;
......@@ -985,9 +985,9 @@ static inline void orinoco_spy_gather(struct net_device *dev, u_char *mac,
}
}
void orinoco_stat_gather(struct net_device *dev,
struct sk_buff *skb,
struct hermes_rx_descriptor *desc)
static void orinoco_stat_gather(struct net_device *dev,
struct sk_buff *skb,
struct hermes_rx_descriptor *desc)
{
struct orinoco_private *priv = netdev_priv(dev);
......
......@@ -387,7 +387,7 @@ static int __init orinoco_pci_init(void)
return pci_module_init(&orinoco_pci_driver);
}
void __exit orinoco_pci_exit(void)
static void __exit orinoco_pci_exit(void)
{
pci_unregister_driver(&orinoco_pci_driver);
}
......
......@@ -341,7 +341,7 @@ static int __init orinoco_plx_init(void)
return pci_module_init(&orinoco_plx_driver);
}
void __exit orinoco_plx_exit(void)
static void __exit orinoco_plx_exit(void)
{
pci_unregister_driver(&orinoco_plx_driver);
current->state = TASK_UNINTERRUPTIBLE;
......
......@@ -214,7 +214,7 @@ static int __init orinoco_tmd_init(void)
return pci_module_init(&orinoco_tmd_driver);
}
void __exit orinoco_tmd_exit(void)
static void __exit orinoco_tmd_exit(void)
{
pci_unregister_driver(&orinoco_tmd_driver);
current->state = TASK_UNINTERRUPTIBLE;
......
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