From patchwork Wed Aug 22 07:37:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kunihiko Hayashi X-Patchwork-Id: 144809 Delivered-To: patch@linaro.org Received: by 2002:a2e:164a:0:0:0:0:0 with SMTP id 10-v6csp382949ljw; Wed, 22 Aug 2018 00:37:38 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwbuWzVYbmuP6olGSdsLvDvxGqu/NSS1u30tVhiY0YCW/L42pfnz6bjImo39sG+Xa6Yqf/v X-Received: by 2002:a62:9101:: with SMTP id l1-v6mr22063477pfe.226.1534923458718; Wed, 22 Aug 2018 00:37:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534923458; cv=none; d=google.com; s=arc-20160816; b=LKW9kQk7I7wKx3St4RYPwS1mePOWqfZ1ABYHsNn7wGhwQNjMt/gUQpvFTdZ//7dbrA d1PJD2Mt+n3jgJQrqi+veuiph3UNzUePlS5YBNkAfMtC2sqrVBz7WX6GdxY2uQ1e6Ikx 8PLc8BQu94UtBkTYNrTsw6zVOaAVOmwfZ9/PuHhOnxNrrJXgbz/XHmqORAZv37NKVIon cXolz4jLlS6PzFyomXTDvUu4J4/qvp6Faxqd5oEEz9SeLNwL4+EBqf71dmkWOx4g2jb1 v5eQJlhBBVw2lmjrynys6Qe4/C8n3AUpay98Yk7S5z/u8Nx0DayDwGk1432eKUsE4xtT glKg== 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=YW9vr8Tg8doQnBxpn0zUbFzDWu6jmUV6q/JanWqWMCM=; b=f/h6ZNbwnGtJp6U3Z79f9xf81HtJpgFenIxuen2SnA4y7F2wm3975kiy7DB+XAkm4a sW1mi+dzSMeusu2gNTgF1IB7Z5FyQXwlma7Az2lPiDJSHoPaerbX3tG4YnGwkX8kcviy q/f8zp5yzv0xXBWLn9mv+QVOTmssxdZEWhulUlke/3WxXh4Hh8+JMNmlizLl6Yf0hh8L /jlV/R9I3101z9agb5i8lfbWyYwosW7hhVNEcK79yLqdCJBPWSEaffWTBhIvQva/0E5w MSnTEt11fRzI5m0DEBflPC1D9+usDMAN48hPEHH/vCRk3gK1gsOlJbiCFqvQgm3m/Ke/ 3ISw== 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 j10-v6si295120pgi.37.2018.08.22.00.37.38; Wed, 22 Aug 2018 00:37:38 -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 S1728437AbeHVLBQ (ORCPT + 32 others); Wed, 22 Aug 2018 07:01:16 -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 S1728364AbeHVLBP (ORCPT ); Wed, 22 Aug 2018 07:01:15 -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:32 +0900 Received: from mail.mfilter.local (m-filter-2 [10.213.24.62]) by iyokan-ex.css.socionext.com (Postfix) with ESMTP id CCE846062A; Wed, 22 Aug 2018 16:37:32 +0900 (JST) Received: from 172.31.9.51 (172.31.9.51) by m-FILTER with ESMTP; Wed, 22 Aug 2018 16:37:32 +0900 Received: from plum.e01.socionext.com (unknown [10.213.132.32]) by kinkan.css.socionext.com (Postfix) with ESMTP id 0FBBA1A0E6F; 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 , Patrice Chotard Subject: [PATCH 11/14] ata: ahci_st: add second argument of ahci_platform_get_resources() Date: Wed, 22 Aug 2018 16:37:07 +0900 Message-Id: <1534923430-9692-12-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: Patrice Chotard Signed-off-by: Kunihiko Hayashi --- drivers/ata/ahci_st.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 diff --git a/drivers/ata/ahci_st.c b/drivers/ata/ahci_st.c index bc345f2..21c5c44 100644 --- a/drivers/ata/ahci_st.c +++ b/drivers/ata/ahci_st.c @@ -156,7 +156,7 @@ static int st_ahci_probe(struct platform_device *pdev) if (!drv_data) return -ENOMEM; - hpriv = ahci_platform_get_resources(pdev); + hpriv = ahci_platform_get_resources(pdev, 0); if (IS_ERR(hpriv)) return PTR_ERR(hpriv); hpriv->plat_data = drv_data;