staging: et131x: Introduce et1310_in_phy_coma() call
commita3bf5fa772963ef0310d982077784ef6839f2fa7
authorMark Einon <mark.einon@gmail.com>
Sat, 1 Oct 2011 10:14:11 +0000 (1 11:14 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 4 Oct 2011 17:43:12 +0000 (4 10:43 -0700)
tree7b770e78b73a458c23ff3679b2c4903e0377d067
parent53c3ee0db36db31d095f4e902bc42a4dea18fd8c
staging: et131x: Introduce et1310_in_phy_coma() call

In several places in the code, the pm_csr register is read and the PHY_SW_COMA bit checked.

Move this check into its own small function to make the code more readable.

Signed-off-by: Mark Einon <mark.einon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/et131x/et1310_mac.c
drivers/staging/et131x/et1310_pm.c
drivers/staging/et131x/et131x.h
drivers/staging/et131x/et131x_initpci.c
drivers/staging/et131x/et131x_isr.c