diff options
author | Ivo van Doorn <ivdoorn@gmail.com> | 2008-01-06 17:40:07 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:09:24 -0500 |
commit | e37ea2135be080dd25f1a2644c9132c109fa77d1 (patch) | |
tree | 9e4960846d844f6ae03de2e05b958c156f164976 /drivers/net/wireless/rt2x00/rt2x00lib.h | |
parent | 042671040db95a896c5ca960b9b656692a787892 (diff) |
rt2x00: Move start() and stop() handlers into rt2x00lib.c
suspend & resume was broken since it called rt2x00mac_start()
and rt2x00mac_stop() which would fail to execute because the
DEVICE_PRESENT flag was not set.
Move the start and stop handlers into rt2x00lib.c which are called
from rt2x00mac_start() and rt2x00mac_stop() after they have checked
the DEVICE_PRESENT flag, while suspend and resume handlers can
directly call those functions.
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00lib.h')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt2x00lib.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00lib.h b/drivers/net/wireless/rt2x00/rt2x00lib.h index 108488ddbbb9..1adbd28e0973 100644 --- a/drivers/net/wireless/rt2x00/rt2x00lib.h +++ b/drivers/net/wireless/rt2x00/rt2x00lib.h | |||
@@ -44,8 +44,8 @@ void rt2x00lib_reset_link_tuner(struct rt2x00_dev *rt2x00dev); | |||
44 | /* | 44 | /* |
45 | * Initialization handlers. | 45 | * Initialization handlers. |
46 | */ | 46 | */ |
47 | int rt2x00lib_initialize(struct rt2x00_dev *rt2x00dev); | 47 | int rt2x00lib_start(struct rt2x00_dev *rt2x00dev); |
48 | void rt2x00lib_uninitialize(struct rt2x00_dev *rt2x00dev); | 48 | void rt2x00lib_stop(struct rt2x00_dev *rt2x00dev); |
49 | 49 | ||
50 | /* | 50 | /* |
51 | * Configuration handlers. | 51 | * Configuration handlers. |