From patchwork Wed Aug 22 07:36:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kunihiko Hayashi X-Patchwork-Id: 144820 Delivered-To: patch@linaro.org Received: by 2002:a2e:164a:0:0:0:0:0 with SMTP id 10-v6csp383797ljw; Wed, 22 Aug 2018 00:38:55 -0700 (PDT) X-Google-Smtp-Source: AA+uWPzPiWBocQCd78u5HMiYa0crwdEzafEJbAglY6fhfb0BZNwJAlwikTj+5S/ilc4dgaJ3+fUY X-Received: by 2002:a65:450a:: with SMTP id n10-v6mr25457169pgq.392.1534923535801; Wed, 22 Aug 2018 00:38:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534923535; cv=none; d=google.com; s=arc-20160816; b=Ndgk611V9o8m8q3kpzReclAioJ+kLKlvQoK6Vo9qlVYE4bdycralFNE1qbGHccfnl7 RFotsI+eo77bpa7q3RCTWb8xVlL3IBS2aY674igXQQjpjA8enIwQX5pCsCOfwlp2Cb9t yZgOsNgztdwrYGzVAT5x9D+wUAGSC9q1Cb+De6DR0JHATsodw8He9u42P1ZZs2yUNW4k irZq1GE+CrNdUujQG8sqbUu309pFaVaIH2p88Fhp0Fq0tYGaV0GZ4ikwr9VPy5lyarjP dLwn6U+cpAtCdBRG+heMcpPdQVdSf+o66QLIwTAn1jWYBqaXtybfL/GxDCEDV7TW3d00 FycA== 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=deFb3ZZNH15WCxP1TgbkfYbcOkMPennVOVtWQBOBIzI=; b=ng0tw2byB4Ei8qnRNCKq9WCZIZRc/3TW3LnBDAk8iN5VCRubk8EBv1K2DQGZ77UV1t 4tN/NXmaPRtqHQPXWYE4dH3xLmzEAr5wxvsiP7Q+S+u699SyB1W+ht4C79Ji+9hvsonv dOPZIBOu5f+jqHnoSg5fEhxCjiN5yi4HnQ5rtNnPsG/RPQ8rFAe4mO+e5AP/gmsml1Jf NVInlPpUIJebTj1fRlQQ2mfuvj2BL3zBMmuz+b1WEGuh6lcgxySlcX2WUH1fgBLstg2V xR4jDdX7y4aXVDUT5g/uOp5Y5FzPL1KCMyP6/NRcSB9YXv7U1/wgQMNALtuhks/EUFam 6J4g== 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 g12-v6si1063718pla.70.2018.08.22.00.38.55; Wed, 22 Aug 2018 00:38:55 -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 S1728278AbeHVLBM (ORCPT + 32 others); Wed, 22 Aug 2018 07:01:12 -0400 Received: from mx.socionext.com ([202.248.49.38]:47191 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728199AbeHVLBL (ORCPT ); Wed, 22 Aug 2018 07:01:11 -0400 Received: from unknown (HELO kinkan-ex.css.socionext.com) ([172.31.9.52]) by mx.socionext.com with ESMTP; 22 Aug 2018 16:37:30 +0900 Received: from mail.mfilter.local (m-filter-1 [10.213.24.61]) by kinkan-ex.css.socionext.com (Postfix) with ESMTP id 7619C180237; Wed, 22 Aug 2018 16:37:30 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Wed, 22 Aug 2018 16:37:30 +0900 Received: from plum.e01.socionext.com (unknown [10.213.132.32]) by kinkan.css.socionext.com (Postfix) with ESMTP id 903651A0E11; Wed, 22 Aug 2018 16:37:29 +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 Subject: [PATCH 02/14] ata: ahci_brcm: add second argument of ahci_platform_get_resources() Date: Wed, 22 Aug 2018 16:36:58 +0900 Message-Id: <1534923430-9692-3-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 Signed-off-by: Kunihiko Hayashi --- drivers/ata/ahci_brcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 diff --git a/drivers/ata/ahci_brcm.c b/drivers/ata/ahci_brcm.c index ea43081..f3d5577 100644 --- a/drivers/ata/ahci_brcm.c +++ b/drivers/ata/ahci_brcm.c @@ -425,7 +425,7 @@ static int brcm_ahci_probe(struct platform_device *pdev) brcm_sata_phys_enable(priv); - hpriv = ahci_platform_get_resources(pdev); + hpriv = ahci_platform_get_resources(pdev, 0); if (IS_ERR(hpriv)) return PTR_ERR(hpriv); hpriv->plat_data = priv;