From patchwork Wed Aug 22 07:37:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kunihiko Hayashi X-Patchwork-Id: 144818 Delivered-To: patch@linaro.org Received: by 2002:a2e:164a:0:0:0:0:0 with SMTP id 10-v6csp383429ljw; Wed, 22 Aug 2018 00:38:23 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyzieq7MYaWf+3WxlQwvnJ/2Ro+AtFdNy1gxFsPqX271RjiETrFCZfbsBCowWxHcLTtYuKx X-Received: by 2002:a62:50c3:: with SMTP id g64-v6mr27527889pfj.244.1534923503017; Wed, 22 Aug 2018 00:38:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534923503; cv=none; d=google.com; s=arc-20160816; b=uDDApLYpflJXeO0gYQC/SySohU0YjBNXlld46/QazcDeLJVVEsfWjmJgYs0Havb688 3ZtGsCSQidKfMJlxbmPdiRr+5k4MqCwq3WaPwES3xT03LdxoLAEVMXQbgzEZW1o7j3i8 QIxE0RxVXkRIUYdMgurasFsyxLUO9XMHeWta50ntJy4uvTVwD4GxaSyoEFCzJSpLQCNs 1Z0UknqRTxVCwDy/ILIAYmp5+6vlbZI4BH5jjKx1Xx/CamoDLRzNoVMpaYtDsKBdcryC dCDYtQF+ydIX0xDEQDt8/SQQ/4VSbcMCZY2t1c2KPvExqM0BHBkTIPP8TSSoQMzmtG4a hkBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=2/ASqOTjM+tZVaSjQqgfTB8JikEW03sImiaET2Q/yxY=; b=x36cJBvXTpmFHrXR3eyEQl6NhQTFVRFRoL6CT0o6tX0NF3hT68UhMUvmTvSe/n26c9 bxIxhpDGP1UuAWo9Aiq4yQXSVl8SvWnCEBIT0mp5gVGaDPywdk8GPp6BCQps7TYb7DId SJldL8saI5lMDRFnEPBMFhW4j4HbtEGAF9X+/AZkZnELY80D51GvYTZPtfooHcJwvOL6 bELbCG9ZTvrJTYw/lGC0j+gLEeX/FU7B7MpExLyLmLveoM25w01Aj9x7/oeuxF8A/1Kt keopjnwnOU/r6J2YS5rZuF3AFw6XGTZkkMVfo4EksTRo/jb81ksf34HVhbLoKtq9XbAP 9J9w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w190-v6si997732pgd.482.2018.08.22.00.38.22; Wed, 22 Aug 2018 00:38:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728486AbeHVLBu (ORCPT + 32 others); Wed, 22 Aug 2018 07:01:50 -0400 Received: from mx.socionext.com ([202.248.49.38]:47195 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728284AbeHVLBN (ORCPT ); Wed, 22 Aug 2018 07:01:13 -0400 Received: from unknown (HELO iyokan-ex.css.socionext.com) ([172.31.9.54]) by mx.socionext.com with ESMTP; 22 Aug 2018 16:37:31 +0900 Received: from mail.mfilter.local (m-filter-1 [10.213.24.61]) by iyokan-ex.css.socionext.com (Postfix) with ESMTP id 7FE606062A; Wed, 22 Aug 2018 16:37:31 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Wed, 22 Aug 2018 16:37:31 +0900 Received: from plum.e01.socionext.com (unknown [10.213.132.32]) by kinkan.css.socionext.com (Postfix) with ESMTP id ED0F61A0E6F; Wed, 22 Aug 2018 16:37:30 +0900 (JST) From: Kunihiko Hayashi To: Tejun Heo , Hans de Goede , Rob Herring , Mark Rutland , linux-ide@vger.kernel.org Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Kunihiko Hayashi , Matthias Brugger Subject: [PATCH 07/14] ata: ahci_brcm: add second argument of ahci_platform_get_resources() Date: Wed, 22 Aug 2018 16:37:03 +0900 Message-Id: <1534923430-9692-8-git-send-email-hayashi.kunihiko@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1534923430-9692-1-git-send-email-hayashi.kunihiko@socionext.com> References: <1534923430-9692-1-git-send-email-hayashi.kunihiko@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Adding a flag to indicate whether acqiring the optional resources as the second argument of ahci_platform_get_resources(), add the argument as initial value 0. Cc: Hans de Goede Cc: Matthias Brugger Signed-off-by: Kunihiko Hayashi --- drivers/ata/ahci_mtk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 diff --git a/drivers/ata/ahci_mtk.c b/drivers/ata/ahci_mtk.c index 0ae6971..8bc1a26 100644 --- a/drivers/ata/ahci_mtk.c +++ b/drivers/ata/ahci_mtk.c @@ -142,7 +142,7 @@ static int mtk_ahci_probe(struct platform_device *pdev) if (!plat) return -ENOMEM; - hpriv = ahci_platform_get_resources(pdev); + hpriv = ahci_platform_get_resources(pdev, 0); if (IS_ERR(hpriv)) return PTR_ERR(hpriv);