aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStanislaw Gruszka <stf_xl@wp.pl>2013-01-26 12:13:50 -0500
committerJohn W. Linville <linville@tuxdriver.com>2013-01-30 15:06:43 -0500
commit92941382e8b80c55a4ad06b88a3bf95110969693 (patch)
tree689ecb2d158e27f914c1f1fba4d3b7440d4322bb
parentbb9c298f3193ac5b80e47b325c690700580b6bcf (diff)
rt2x00: remove NOTICE
We use this macro only on 3 places - remove it and replace by other appropriate macros for printing messages. Signed-off-by: Stanislaw Gruszka <stf_xl@wp.pl> Acked-by: Ivo van Doorn <IvDoorn@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r--drivers/net/wireless/rt2x00/rt2800lib.c2
-rw-r--r--drivers/net/wireless/rt2x00/rt2x00.h2
-rw-r--r--drivers/net/wireless/rt2x00/rt2x00dev.c4
3 files changed, 3 insertions, 5 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2800lib.c b/drivers/net/wireless/rt2x00/rt2800lib.c
index a5c694f23d33..a658b4bc7da2 100644
--- a/drivers/net/wireless/rt2x00/rt2800lib.c
+++ b/drivers/net/wireless/rt2x00/rt2800lib.c
@@ -80,7 +80,7 @@ static inline bool rt2800_is_305x_soc(struct rt2x00_dev *rt2x00dev)
80 rt2x00_rf(rt2x00dev, RF3022)) 80 rt2x00_rf(rt2x00dev, RF3022))
81 return true; 81 return true;
82 82
83 NOTICE(rt2x00dev, "Unknown RF chipset on rt305x\n"); 83 WARNING(rt2x00dev, "Unknown RF chipset on rt305x\n");
84 return false; 84 return false;
85} 85}
86 86
diff --git a/drivers/net/wireless/rt2x00/rt2x00.h b/drivers/net/wireless/rt2x00/rt2x00.h
index 7d21e061dc88..9a3f31a543ce 100644
--- a/drivers/net/wireless/rt2x00/rt2x00.h
+++ b/drivers/net/wireless/rt2x00/rt2x00.h
@@ -89,8 +89,6 @@
89 DEBUG_PRINTK_PROBE(KERN_ERR, "Error", __msg, ##__args) 89 DEBUG_PRINTK_PROBE(KERN_ERR, "Error", __msg, ##__args)
90#define WARNING(__dev, __msg, __args...) \ 90#define WARNING(__dev, __msg, __args...) \
91 DEBUG_PRINTK_MSG(__dev, KERN_WARNING, "Warning", __msg, ##__args) 91 DEBUG_PRINTK_MSG(__dev, KERN_WARNING, "Warning", __msg, ##__args)
92#define NOTICE(__dev, __msg, __args...) \
93 DEBUG_PRINTK_MSG(__dev, KERN_NOTICE, "Notice", __msg, ##__args)
94#define INFO(__dev, __msg, __args...) \ 92#define INFO(__dev, __msg, __args...) \
95 DEBUG_PRINTK_MSG(__dev, KERN_INFO, "Info", __msg, ##__args) 93 DEBUG_PRINTK_MSG(__dev, KERN_INFO, "Info", __msg, ##__args)
96#define DEBUG(__dev, __msg, __args...) \ 94#define DEBUG(__dev, __msg, __args...) \
diff --git a/drivers/net/wireless/rt2x00/rt2x00dev.c b/drivers/net/wireless/rt2x00/rt2x00dev.c
index b40a53857498..92a0aa5d7b08 100644
--- a/drivers/net/wireless/rt2x00/rt2x00dev.c
+++ b/drivers/net/wireless/rt2x00/rt2x00dev.c
@@ -1446,7 +1446,7 @@ EXPORT_SYMBOL_GPL(rt2x00lib_remove_dev);
1446#ifdef CONFIG_PM 1446#ifdef CONFIG_PM
1447int rt2x00lib_suspend(struct rt2x00_dev *rt2x00dev, pm_message_t state) 1447int rt2x00lib_suspend(struct rt2x00_dev *rt2x00dev, pm_message_t state)
1448{ 1448{
1449 NOTICE(rt2x00dev, "Going to sleep.\n"); 1449 DEBUG(rt2x00dev, "Going to sleep.\n");
1450 1450
1451 /* 1451 /*
1452 * Prevent mac80211 from accessing driver while suspended. 1452 * Prevent mac80211 from accessing driver while suspended.
@@ -1486,7 +1486,7 @@ EXPORT_SYMBOL_GPL(rt2x00lib_suspend);
1486 1486
1487int rt2x00lib_resume(struct rt2x00_dev *rt2x00dev) 1487int rt2x00lib_resume(struct rt2x00_dev *rt2x00dev)
1488{ 1488{
1489 NOTICE(rt2x00dev, "Waking up.\n"); 1489 DEBUG(rt2x00dev, "Waking up.\n");
1490 1490
1491 /* 1491 /*
1492 * Restore/enable extra components. 1492 * Restore/enable extra components.