|
@@ -54,9 +54,6 @@ static int ahci_platform_enable_phys(struct ahci_host_priv *hpriv)
|
|
int rc, i;
|
|
int rc, i;
|
|
|
|
|
|
for (i = 0; i < hpriv->nports; i++) {
|
|
for (i = 0; i < hpriv->nports; i++) {
|
|
- if (!hpriv->phys[i])
|
|
|
|
- continue;
|
|
|
|
-
|
|
|
|
rc = phy_init(hpriv->phys[i]);
|
|
rc = phy_init(hpriv->phys[i]);
|
|
if (rc)
|
|
if (rc)
|
|
goto disable_phys;
|
|
goto disable_phys;
|
|
@@ -89,9 +86,6 @@ static void ahci_platform_disable_phys(struct ahci_host_priv *hpriv)
|
|
int i;
|
|
int i;
|
|
|
|
|
|
for (i = 0; i < hpriv->nports; i++) {
|
|
for (i = 0; i < hpriv->nports; i++) {
|
|
- if (!hpriv->phys[i])
|
|
|
|
- continue;
|
|
|
|
-
|
|
|
|
phy_power_off(hpriv->phys[i]);
|
|
phy_power_off(hpriv->phys[i]);
|
|
phy_exit(hpriv->phys[i]);
|
|
phy_exit(hpriv->phys[i]);
|
|
}
|
|
}
|