aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00/rt2x00lib.h
diff options
context:
space:
mode:
authorIvo van Doorn <ivdoorn@gmail.com>2008-01-06 17:40:07 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:09:24 -0500
commite37ea2135be080dd25f1a2644c9132c109fa77d1 (patch)
tree9e4960846d844f6ae03de2e05b958c156f164976 /drivers/net/wireless/rt2x00/rt2x00lib.h
parent042671040db95a896c5ca960b9b656692a787892 (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.h4
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 */
47int rt2x00lib_initialize(struct rt2x00_dev *rt2x00dev); 47int rt2x00lib_start(struct rt2x00_dev *rt2x00dev);
48void rt2x00lib_uninitialize(struct rt2x00_dev *rt2x00dev); 48void rt2x00lib_stop(struct rt2x00_dev *rt2x00dev);
49 49
50/* 50/*
51 * Configuration handlers. 51 * Configuration handlers.