@@ -275,7 +275,7 @@ static int bcm5411_init(struct mii_phy* phy)
275275 return 0 ;
276276}
277277
278- static int bcm5411_suspend (struct mii_phy * phy )
278+ static int generic_suspend (struct mii_phy * phy )
279279{
280280 phy_write (phy , MII_BMCR , BMCR_PDOWN );
281281
@@ -738,7 +738,7 @@ static struct mii_phy_def bcm5401_phy_def = {
738738/* Broadcom BCM 5411 */
739739static struct mii_phy_ops bcm5411_phy_ops = {
740740 .init = bcm5411_init ,
741- .suspend = bcm5411_suspend ,
741+ .suspend = generic_suspend ,
742742 .setup_aneg = bcm54xx_setup_aneg ,
743743 .setup_forced = bcm54xx_setup_forced ,
744744 .poll_link = genmii_poll_link ,
@@ -757,7 +757,7 @@ static struct mii_phy_def bcm5411_phy_def = {
757757/* Broadcom BCM 5421 */
758758static struct mii_phy_ops bcm5421_phy_ops = {
759759 .init = bcm5421_init ,
760- .suspend = bcm5411_suspend ,
760+ .suspend = generic_suspend ,
761761 .setup_aneg = bcm54xx_setup_aneg ,
762762 .setup_forced = bcm54xx_setup_forced ,
763763 .poll_link = genmii_poll_link ,
@@ -776,7 +776,7 @@ static struct mii_phy_def bcm5421_phy_def = {
776776/* Broadcom BCM 5421 built-in K2 */
777777static struct mii_phy_ops bcm5421k2_phy_ops = {
778778 .init = bcm5421_init ,
779- .suspend = bcm5411_suspend ,
779+ .suspend = generic_suspend ,
780780 .setup_aneg = bcm54xx_setup_aneg ,
781781 .setup_forced = bcm54xx_setup_forced ,
782782 .poll_link = genmii_poll_link ,
@@ -795,7 +795,7 @@ static struct mii_phy_def bcm5421k2_phy_def = {
795795/* Broadcom BCM 5462 built-in Vesta */
796796static struct mii_phy_ops bcm5462V_phy_ops = {
797797 .init = bcm5421_init ,
798- .suspend = bcm5411_suspend ,
798+ .suspend = generic_suspend ,
799799 .setup_aneg = bcm54xx_setup_aneg ,
800800 .setup_forced = bcm54xx_setup_forced ,
801801 .poll_link = genmii_poll_link ,
@@ -816,6 +816,7 @@ static struct mii_phy_def bcm5462V_phy_def = {
816816 * would be useful here) --BenH.
817817 */
818818static struct mii_phy_ops marvell_phy_ops = {
819+ .suspend = generic_suspend ,
819820 .setup_aneg = marvell_setup_aneg ,
820821 .setup_forced = marvell_setup_forced ,
821822 .poll_link = genmii_poll_link ,
0 commit comments