diff options
-rw-r--r-- | drivers/ata/ahci_st.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/ata/ahci_st.c b/drivers/ata/ahci_st.c index 3edec5db3717..17191b96648e 100644 --- a/drivers/ata/ahci_st.c +++ b/drivers/ata/ahci_st.c | |||
@@ -186,6 +186,10 @@ static int st_ahci_suspend(struct device *dev) | |||
186 | struct ahci_host_priv *hpriv = drv_data->hpriv; | 186 | struct ahci_host_priv *hpriv = drv_data->hpriv; |
187 | int err; | 187 | int err; |
188 | 188 | ||
189 | ret = ahci_platform_suspend_host(dev); | ||
190 | if (ret) | ||
191 | return ret; | ||
192 | |||
189 | if (drv_data->pwr) { | 193 | if (drv_data->pwr) { |
190 | err = reset_control_assert(drv_data->pwr); | 194 | err = reset_control_assert(drv_data->pwr); |
191 | if (err) { | 195 | if (err) { |
@@ -215,7 +219,7 @@ static int st_ahci_resume(struct device *dev) | |||
215 | return err; | 219 | return err; |
216 | } | 220 | } |
217 | 221 | ||
218 | return 0; | 222 | return ahci_platform_resume_host(dev); |
219 | } | 223 | } |
220 | #endif | 224 | #endif |
221 | 225 | ||