diff options
author | Guo-Fu Tseng <cooldavid@cooldavid.org> | 2011-06-27 21:38:30 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-07-01 01:13:16 -0400 |
commit | bc057e0366cad58e55038a2cb69572d51c40cdf3 (patch) | |
tree | 741298ce8b3b4031a8a10933c1261825ad1e53f3 /drivers/net/jme.h | |
parent | aab6fb82b1912a312f7547c92ac8d4ecb072e807 (diff) |
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>
Diffstat (limited to 'drivers/net/jme.h')
-rw-r--r-- | drivers/net/jme.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/jme.h b/drivers/net/jme.h index 0d5da06489d8..1481a62a1f36 100644 --- a/drivers/net/jme.h +++ b/drivers/net/jme.h | |||
@@ -852,6 +852,7 @@ enum jme_ghc_txmac_clk { | |||
852 | * Power management control and status register | 852 | * Power management control and status register |
853 | */ | 853 | */ |
854 | enum jme_pmcs_bit_masks { | 854 | enum jme_pmcs_bit_masks { |
855 | PMCS_STMASK = 0xFFFF0000, | ||
855 | PMCS_WF7DET = 0x80000000, | 856 | PMCS_WF7DET = 0x80000000, |
856 | PMCS_WF6DET = 0x40000000, | 857 | PMCS_WF6DET = 0x40000000, |
857 | PMCS_WF5DET = 0x20000000, | 858 | PMCS_WF5DET = 0x20000000, |
@@ -863,6 +864,7 @@ enum jme_pmcs_bit_masks { | |||
863 | PMCS_LFDET = 0x00040000, | 864 | PMCS_LFDET = 0x00040000, |
864 | PMCS_LRDET = 0x00020000, | 865 | PMCS_LRDET = 0x00020000, |
865 | PMCS_MFDET = 0x00010000, | 866 | PMCS_MFDET = 0x00010000, |
867 | PMCS_ENMASK = 0x0000FFFF, | ||
866 | PMCS_WF7EN = 0x00008000, | 868 | PMCS_WF7EN = 0x00008000, |
867 | PMCS_WF6EN = 0x00004000, | 869 | PMCS_WF6EN = 0x00004000, |
868 | PMCS_WF5EN = 0x00002000, | 870 | PMCS_WF5EN = 0x00002000, |