rt2x00: Move start() and stop() handlers into rt2x00lib.c
authorIvo van Doorn <ivdoorn@gmail.com>
Sun, 6 Jan 2008 22:40:07 +0000 (23:40 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 23:09:24 +0000 (15:09 -0800)
commite37ea2135be080dd25f1a2644c9132c109fa77d1
tree9e4960846d844f6ae03de2e05b958c156f164976
parent042671040db95a896c5ca960b9b656692a787892
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>
drivers/net/wireless/rt2x00/rt2x00dev.c
drivers/net/wireless/rt2x00/rt2x00lib.h
drivers/net/wireless/rt2x00/rt2x00mac.c