summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorLarry Finger <Larry.Finger@lwfinger.net>2011-02-15 09:37:06 -0600
committerJohn W. Linville <linville@tuxdriver.com>2011-02-18 16:53:20 -0500
commitfe0b7c616ebd7d25afbb4315d0e3220b112a7b2f (patch)
treedc18659fed3c2166c477a8793eb9f4ca3a26630c /drivers
parent12873372fe1f201813f1cc750a8af7d9193f445c (diff)
downloadlinux-fe0b7c616ebd7d25afbb4315d0e3220b112a7b2f.tar.gz
linux-fe0b7c616ebd7d25afbb4315d0e3220b112a7b2f.tar.bz2
linux-fe0b7c616ebd7d25afbb4315d0e3220b112a7b2f.zip
p54: Fix compile warning
If any of the p54-based drivers are built with CONFIG_P54_LEDS not defined, the following warning is generated: CC [M] drivers/net/wireless/p54/main.o drivers/net/wireless/p54/main.c: In function ‘p54_register_common’: drivers/net/wireless/p54/main.c:614:21: warning: unused variable ‘priv’ Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/wireless/p54/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/p54/main.c b/drivers/net/wireless/p54/main.c
index 0a78e666e2d1..338e8dcac1f3 100644
--- a/drivers/net/wireless/p54/main.c
+++ b/drivers/net/wireless/p54/main.c
@@ -611,7 +611,7 @@ EXPORT_SYMBOL_GPL(p54_init_common);
int p54_register_common(struct ieee80211_hw *dev, struct device *pdev)
{
- struct p54_common *priv = dev->priv;
+ struct p54_common __maybe_unused *priv = dev->priv;
int err;
err = ieee80211_register_hw(dev);