net: bcmgenet: abort suspend on error
[linux-2.6-microblaze.git] / drivers / net / ethernet / broadcom / genet / bcmgenet.c
index 01c8499..983245c 100644 (file)
@@ -3717,6 +3717,9 @@ static int bcmgenet_suspend(struct device *d)
        /* Turn off the clocks */
        clk_disable_unprepare(priv->clk);
 
+       if (ret)
+               bcmgenet_resume(d);
+
        return ret;
 }
 #endif /* CONFIG_PM_SLEEP */