Browse Source

ata: ahci_platform: enable to get and control reset

Unlike SoC-specific driver, generic ahci_platform driver doesn't
have any chances to control resets.

This adds AHCI_PLATFORM_GET_RESETS to ahci_platform_get_resources()
on the generic driver to enable reset control support.

Suggested-by: Hans de Goede <hdegoede@redhat.com>
Cc: Thierry Reding <thierry.reding@gmail.com>
Signed-off-by: Kunihiko Hayashi <hayashi.kunihiko@socionext.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Kunihiko Hayashi 7 years ago
parent
commit
2d17f460c5
1 changed files with 2 additions and 1 deletions
  1. 2 1
      drivers/ata/ahci_platform.c

+ 2 - 1
drivers/ata/ahci_platform.c

@@ -43,7 +43,8 @@ static int ahci_probe(struct platform_device *pdev)
 	struct ahci_host_priv *hpriv;
 	struct ahci_host_priv *hpriv;
 	int rc;
 	int rc;
 
 
-	hpriv = ahci_platform_get_resources(pdev, 0);
+	hpriv = ahci_platform_get_resources(pdev,
+					    AHCI_PLATFORM_GET_RESETS);
 	if (IS_ERR(hpriv))
 	if (IS_ERR(hpriv))
 		return PTR_ERR(hpriv);
 		return PTR_ERR(hpriv);