p54spi: always call p54spi_sleep in p54spi_tx_frame if p54spi_wakeup succeeded
authorMax Filippov <jcmvbkbc@gmail.com>
Sun, 17 May 2009 23:02:34 +0000 (03:02 +0400)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 20 May 2009 18:46:28 +0000 (14:46 -0400)
commit6edf534a3214e8fad943d7acd903603f0a5b9ac8
tree983a69a0a90c459d33046ee33566fb9384652e26
parent465b63537f93e82a2606332830801acb64467ec9
p54spi: always call p54spi_sleep in p54spi_tx_frame if p54spi_wakeup succeeded

Put chip into sleep state, once it's been awaken.
Also, propagate error code to the caller.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/p54/p54spi.c