diff options
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00lib.h')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00lib.h | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00lib.h b/drivers/net/wireless/rt2x00/rt2x00lib.h index e4b4dd23d611..64fae7e3f73b 100644 --- a/drivers/net/wireless/rt2x00/rt2x00lib.h +++ b/drivers/net/wireless/rt2x00/rt2x00lib.h | |||
@@ -148,28 +148,36 @@ static inline void rt2x00debug_dump_frame(struct rt2x00_dev *rt2x00dev, | |||
148 | * RFkill handlers. | 148 | * RFkill handlers. |
149 | */ | 149 | */ |
150 | #ifdef CONFIG_RT2X00_LIB_RFKILL | 150 | #ifdef CONFIG_RT2X00_LIB_RFKILL |
151 | int rt2x00rfkill_register(struct rt2x00_dev *rt2x00dev); | 151 | void rt2x00rfkill_register(struct rt2x00_dev *rt2x00dev); |
152 | void rt2x00rfkill_unregister(struct rt2x00_dev *rt2x00dev); | 152 | void rt2x00rfkill_unregister(struct rt2x00_dev *rt2x00dev); |
153 | int rt2x00rfkill_allocate(struct rt2x00_dev *rt2x00dev); | 153 | void rt2x00rfkill_allocate(struct rt2x00_dev *rt2x00dev); |
154 | void rt2x00rfkill_free(struct rt2x00_dev *rt2x00dev); | 154 | void rt2x00rfkill_free(struct rt2x00_dev *rt2x00dev); |
155 | void rt2x00rfkill_suspend(struct rt2x00_dev *rt2x00dev); | ||
156 | void rt2x00rfkill_resume(struct rt2x00_dev *rt2x00dev); | ||
155 | #else | 157 | #else |
156 | static inline int rt2x00rfkill_register(struct rt2x00_dev *rt2x00dev) | 158 | static inline void rt2x00rfkill_register(struct rt2x00_dev *rt2x00dev) |
157 | { | 159 | { |
158 | return 0; | ||
159 | } | 160 | } |
160 | 161 | ||
161 | static inline void rt2x00rfkill_unregister(struct rt2x00_dev *rt2x00dev) | 162 | static inline void rt2x00rfkill_unregister(struct rt2x00_dev *rt2x00dev) |
162 | { | 163 | { |
163 | } | 164 | } |
164 | 165 | ||
165 | static inline int rt2x00rfkill_allocate(struct rt2x00_dev *rt2x00dev) | 166 | static inline void rt2x00rfkill_allocate(struct rt2x00_dev *rt2x00dev) |
166 | { | 167 | { |
167 | return 0; | ||
168 | } | 168 | } |
169 | 169 | ||
170 | static inline void rt2x00rfkill_free(struct rt2x00_dev *rt2x00dev) | 170 | static inline void rt2x00rfkill_free(struct rt2x00_dev *rt2x00dev) |
171 | { | 171 | { |
172 | } | 172 | } |
173 | |||
174 | static inline void rt2x00rfkill_suspend(struct rt2x00_dev *rt2x00dev) | ||
175 | { | ||
176 | } | ||
177 | |||
178 | static inline void rt2x00rfkill_resume(struct rt2x00_dev *rt2x00dev) | ||
179 | { | ||
180 | } | ||
173 | #endif /* CONFIG_RT2X00_LIB_RFKILL */ | 181 | #endif /* CONFIG_RT2X00_LIB_RFKILL */ |
174 | 182 | ||
175 | /* | 183 | /* |