jme: Cleanup PM operations after using new PM API
authorGuo-Fu Tseng <cooldavid@cooldavid.org>
Tue, 28 Jun 2011 01:38:30 +0000 (01:38 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Jul 2011 05:13:16 +0000 (22:13 -0700)
commitbc057e0366cad58e55038a2cb69572d51c40cdf3
tree741298ce8b3b4031a8a10933c1261825ad1e53f3
parentaab6fb82b1912a312f7547c92ac8d4ecb072e807
jme: Cleanup PM operations after using new PM API

1. Using enum name instead of numeric value.
2. device_set_wakeup_enable expect bool argument
   adding !!() to the argument to be passed.
3. Remove non-jme-hardware related operations from
   jme_clear_pm()
4. Reuse jme_clear_pm() in jme_resume() and jme_powersave_phy()

Signed-off-by: Guo-Fu Tseng <cooldavid@cooldavid.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/jme.c
drivers/net/jme.h