From: Kunihiko Hayashi Date: Wed, 22 Aug 2018 12:13:03 +0000 (+0900) Subject: ata: ahci_platform: enable to get and control reset X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=2d17f460c5d79fa9fc794e813377f3276acf81ce;p=linux.git 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 Cc: Thierry Reding Signed-off-by: Kunihiko Hayashi Reviewed-by: Hans de Goede Signed-off-by: Tejun Heo --- diff --git a/drivers/ata/ahci_platform.c b/drivers/ata/ahci_platform.c index 5709273169625..ddd930852b2e4 100644 --- a/drivers/ata/ahci_platform.c +++ b/drivers/ata/ahci_platform.c @@ -43,7 +43,8 @@ static int ahci_probe(struct platform_device *pdev) struct ahci_host_priv *hpriv; int rc; - hpriv = ahci_platform_get_resources(pdev, 0); + hpriv = ahci_platform_get_resources(pdev, + AHCI_PLATFORM_GET_RESETS); if (IS_ERR(hpriv)) return PTR_ERR(hpriv);