mac80211: Fix build error when CONFIG_PM is not defined
authorLarry Finger <Larry.Finger@lwfinger.net>
Thu, 5 May 2011 23:48:47 +0000 (18:48 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 10 May 2011 19:54:44 +0000 (15:54 -0400)
commit38bb3e9da62f6ebf1c6940d5482f0d6f431dac1c
tree7d63768b147b3bcc3865a923a4c23dfad14b1483
parent3782cf4a04c272bdaa8476463b1d0208edbc505d
mac80211: Fix build error when CONFIG_PM is not defined

When mac80211 is built without CONFIG_PM being defined, the following errors
are output:

net/mac80211/main.c: In function ‘ieee80211_register_hw’:
net/mac80211/main.c:700: error: ‘const struct ieee80211_ops’ has no member named ‘suspend’
net/mac80211/main.c:700: error: ‘const struct ieee80211_ops’ has no member named ‘resume’
make[2]: *** [net/mac80211/main.o] Error 1
make[1]: *** [net/mac80211] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [net] Error 2

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/mac80211/main.c