wl12xx: wrong values are returned in gpio_power_write()
authorEliad Peller <eliad@wizery.com>
Sun, 23 Jan 2011 10:25:27 +0000 (11:25 +0100)
committerLuciano Coelho <coelho@ti.com>
Mon, 24 Jan 2011 21:15:11 +0000 (23:15 +0200)
commit8e2de74e781e696636e8b4cd08084d2b310d44d9
treefcd5f1384c23920ed556ab0c202537899285acff
parentbbba3e6832ad3e974fb593a98abe03f8b60fc7f3
wl12xx: wrong values are returned in gpio_power_write()

Return values were assigned to incorrect var / weren't assigned.
fix it, and defer mutex_lock after the sanity checks.

Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: Luciano Coelho <coelho@ti.com>
drivers/net/wireless/wl12xx/debugfs.c