From patchwork Wed Aug 22 07:37:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kunihiko Hayashi X-Patchwork-Id: 144817 Delivered-To: patch@linaro.org Received: by 2002:a2e:164a:0:0:0:0:0 with SMTP id 10-v6csp383390ljw; Wed, 22 Aug 2018 00:38:18 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyJMYOg0Ke5zapLBKD5/9WB/72TUduW78IbeOY5/r8ZqWKLfmSLtxBxOfvb+77Q4tHlXgj6 X-Received: by 2002:a17:902:a983:: with SMTP id bh3-v6mr53280914plb.245.1534923498249; Wed, 22 Aug 2018 00:38:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534923498; cv=none; d=google.com; s=arc-20160816; b=c5KEfbU4R+W6RB3LCeC4JUNcL0NBPdoaKKk9gv3RK05sOlVtmSOLL0IjlFB+4F1Ed5 Lm1qFgLzyuGQIY9e7nM3zfnoBN6FwokG2KavIhXvwjJV7ngegAe97dHRhHhaF2cuDBzP X07uUrPuvQRiNYAV8YDHlM7jYrTK1Zr6fRwOWjPju6iEAypnCcodYDTTvVFhmdGg0iz/ EuHVwOqMYFN+iW3LaDVH40qe/3Y+S6AN68gOjdhym6FYEEvNB5BpUhAaA4CPJSKFuiJp ePxvAX3MLtpl6wBp8Rl9RljyLOsKKGawm2W+D8qAjgXH2a8G3d7Eyk10Hp+LoMzZ5FDQ IDTQ== 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=y5o/755xEIu4f6tPcqai6yEtDLZ48zrz7GLWUUy4+7U=; b=nG3dLDi0xMGxlr2+nE+3EOOQPfxle7PHnhv/ldpGbbgA8hGQ4zuepSy9eeC7zySJY/ TTeBrxrQU7fWAvw1lc3L7FpKXvdeVozawuOFbduoLv9kNYM0xEPiBR6DvT2xYQ+9GFr4 oVxRZtgHkoJNBhKQjlA7HQ30w6Srmib5juWpsORwlbS5gwyph1uCivXJc5VQ6wBkPuhi CTja0cSlkmaeWdYg9ABGoOSMNXp38K5yvBORcia8442+z354WuijGEH+v6sQ1vD27k7H 0GOb5VljMR1zsmRZy3ziSpGZI96ENKgz0nsZ2LD8yLRIXRRXp8cq3JU3X6OaNcmccVep cBLA== 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.17; Wed, 22 Aug 2018 00:38:18 -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 S1728501AbeHVLBu (ORCPT + 32 others); Wed, 22 Aug 2018 07:01:50 -0400 Received: from mx.socionext.com ([202.248.49.38]:47199 "EHLO mx.socionext.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728282AbeHVLBN (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:33 +0900 Received: from mail.mfilter.local (m-filter-1 [10.213.24.61]) by iyokan-ex.css.socionext.com (Postfix) with ESMTP id 0F9276062A; Wed, 22 Aug 2018 16:37:33 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Wed, 22 Aug 2018 16:37:33 +0900 Received: from plum.e01.socionext.com (unknown [10.213.132.32]) by kinkan.css.socionext.com (Postfix) with ESMTP id 4D9481A0E11; Wed, 22 Aug 2018 16:37:32 +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 , Maxime Ripard Subject: [PATCH 12/14] ata: ahci_sunxi: add second argument of ahci_platform_get_resources() Date: Wed, 22 Aug 2018 16:37:08 +0900 Message-Id: <1534923430-9692-13-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: Maxime Ripard Signed-off-by: Kunihiko Hayashi --- drivers/ata/ahci_sunxi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 diff --git a/drivers/ata/ahci_sunxi.c b/drivers/ata/ahci_sunxi.c index b264374..631610b 100644 --- a/drivers/ata/ahci_sunxi.c +++ b/drivers/ata/ahci_sunxi.c @@ -181,7 +181,7 @@ static int ahci_sunxi_probe(struct platform_device *pdev) struct ahci_host_priv *hpriv; int rc; - hpriv = ahci_platform_get_resources(pdev); + hpriv = ahci_platform_get_resources(pdev, 0); if (IS_ERR(hpriv)) return PTR_ERR(hpriv);