|
@@ -139,7 +139,7 @@ static void pcie_set_clkpm_nocheck(struct pcie_link_state *link, int enable)
|
|
static void pcie_set_clkpm(struct pcie_link_state *link, int enable)
|
|
static void pcie_set_clkpm(struct pcie_link_state *link, int enable)
|
|
{
|
|
{
|
|
/* Don't enable Clock PM if the link is not Clock PM capable */
|
|
/* Don't enable Clock PM if the link is not Clock PM capable */
|
|
- if (!link->clkpm_capable && enable)
|
|
|
|
|
|
+ if (!link->clkpm_capable)
|
|
enable = 0;
|
|
enable = 0;
|
|
/* Need nothing if the specified equals to current state */
|
|
/* Need nothing if the specified equals to current state */
|
|
if (link->clkpm_enabled == enable)
|
|
if (link->clkpm_enabled == enable)
|