Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp4064399ybl; Tue, 20 Aug 2019 06:32:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqwIi79FnuXEYmCT03Uw4WQttqdkiXU4Y597KP8ag2ZAnKLZ6vsXQRKjRufXQoXPsuln3I70 X-Received: by 2002:a63:6888:: with SMTP id d130mr23696563pgc.197.1566307937418; Tue, 20 Aug 2019 06:32:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566307937; cv=none; d=google.com; s=arc-20160816; b=GHtkwX7O881V92Eg5/7kwJdTXqTY42TpYYAlosIJWkb33syQhYBhNapFjVo+s7VBIV RYrhBYURCwinp/s/PgpnqsDm4kBVP4BIp/hkdWYgV7Ky3Uq3MaO5DspIxLZzfL5rsOvw SHwNbmewfc7w264tzks65j7mrSYtSXjQHrWKZQLD6Erzxgvgzex2RJQZ33OKM4J3xU6f 6UHh5dfii9JLhpVCSxqcbUPyNkuvWIJB34pr000Fx4NONMqNN5m6YK0pSyRFbfqvbDYP /oELBsWEZS4U9u34MeBcUhjVY2B1zo4e7w1XlG5Vc22hFTFd+R6S4LkC52lAjDfClFNa wd+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type :content-transfer-encoding:content-language:in-reply-to:mime-version :user-agent:date:message-id:from:cc:to:subject:dkim-signature :dkim-filter; bh=/t3KxMf7noDEJ6n4BDpGewDuBYttiUk64Q/ztb5Vlss=; b=CzLeDCFtQvc+WvIa37kK07IF9gf/dTfqzEHMTg9eIY9GqzMU19laBR0NR9EIWlsLdD 02iyn6HBw5NNV9QazcO6TpeA65j9PaceVqkWtyftW+BYTsBRGHRaKCPgCqcuAPNeaoxs JGpdMFsSfJnQa24dqthhYIgUYfvZaB9V8WsuoVzVivPXCc7j6N0kNx2MdhRFNau5qRgV SiEuFcH4pdW40QZ61i7CeX6C+5YePk2lkVcWLrLpQL67x6GLPQjFrt+x3O3NOznsYZU8 peHMOidORUXP97X7BIlMLOxRhQ+ls2wuVC1twworHuqsG7y5cNf0beMWjIGu/IFc9jDt 8WAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b="p6ac7oz/"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i14si13230681pfq.287.2019.08.20.06.32.00; Tue, 20 Aug 2019 06:32:17 -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; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b="p6ac7oz/"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730030AbfHTNa4 (ORCPT + 99 others); Tue, 20 Aug 2019 09:30:56 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:40254 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729888AbfHTNaz (ORCPT ); Tue, 20 Aug 2019 09:30:55 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20190820133054euoutp018280d9e1910973d8fa260f65d99db7da~8pLHTOHbm3067330673euoutp01U for ; Tue, 20 Aug 2019 13:30:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20190820133054euoutp018280d9e1910973d8fa260f65d99db7da~8pLHTOHbm3067330673euoutp01U DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1566307854; bh=/t3KxMf7noDEJ6n4BDpGewDuBYttiUk64Q/ztb5Vlss=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=p6ac7oz/PIE3i1OX6J96nBEazMXIoF8LcXxoHD98StlHUn7w5+HnuDcSVSFPCirik V3Th0fE7i6XMtAWiwRt/AyoOAb0bl+phS1+t6meDsUwqKuqenOazNKPGwlvLEKrJPg dA5QzGsgfI7r0T8uYvVbLBqFx4DuhSub3Vv3SBMk= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20190820133053eucas1p2fbe1e38aec821f5a0d5113f97c9d9a4a~8pLGsAqAm1903519035eucas1p2K; Tue, 20 Aug 2019 13:30:53 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 64.E0.04469.D06FB5D5; Tue, 20 Aug 2019 14:30:53 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20190820133052eucas1p293f12e7cdf66e5ee1194c154fdeadaf4~8pLFzl7ky1143611436eucas1p2W; Tue, 20 Aug 2019 13:30:52 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20190820133052eusmtrp26fabca1de536980742356d327d5e5694~8pLFlYc9g3182731827eusmtrp2N; Tue, 20 Aug 2019 13:30:52 +0000 (GMT) X-AuditID: cbfec7f2-54fff70000001175-81-5d5bf60db5da Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 09.F6.04117.C06FB5D5; Tue, 20 Aug 2019 14:30:52 +0100 (BST) Received: from [106.120.51.71] (unknown [106.120.51.71]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20190820133051eusmtip15186b92b2b17df57a7de78e95964fa07~8pLFRckRA1776217762eusmtip14; Tue, 20 Aug 2019 13:30:51 +0000 (GMT) Subject: Re: [PATCH 6/9] drivers: ata: pata_bk3710: use devm_platform_ioremap_resource() To: "Enrico Weigelt, metux IT consult" Cc: linux-kernel@vger.kernel.org, axboe@kernel.dk, hdegoede@redhat.com, linus.walleij@linaro.org, linux-ide@vger.kernel.org, linux-tegra@vger.kernel.org From: Bartlomiej Zolnierkiewicz Message-ID: Date: Tue, 20 Aug 2019 15:30:50 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <1566304548-19972-6-git-send-email-info@metux.net> Content-Language: en-US Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrDKsWRmVeSWpSXmKPExsWy7djP87q836JjDdbu47JYfbefzeLN8elM FjcbdzNZTPmznMni2I5HTBaXd81hs+j8MovNgd3j8tlSjzvX9rB5TPjwls3j/b6rbB6fN8kF sEZx2aSk5mSWpRbp2yVwZcw83cNY0MFT8fPpZ9YGxsecXYycHBICJhK/J+xk72Lk4hASWMEo 8bZjFiuE84VR4s+mZVDOZ0aJm11TmWFaWtetYYRILGeUuNZ8D6r/LaPEur97WECqhAWiJB7t +s4IYosImEs8frIQbBSzwBxGiY9/t4EVsQlYSUxsXwVWxCtgJ7Hp+2pWEJtFQFXiTNccNhBb VCBC4v6xDawQNYISJ2c+AevlFLCXaPm3A8xmFhCXuPVkPhOELS+x/e0cZpBlEgLb2CXmn57H BnG3i8Sk51OYIGxhiVfHt7BD2DIS/3eCNIM0rGOU+NvxAqp7O6PE8sn/oLqtJQ4fvwh0BgfQ Ck2J9bv0IcKOEtMbFzGBhCUE+CRuvBWEOIJPYtK26cwQYV6JjjYhiGo1iQ3LNrDBrO3auZJ5 AqPSLCSvzULyziwk78xC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q41L/mSdSYnr kxMRlxKPuZUsz/3Zw7oy4+WaP+UabN0cO558ffaTSfQj1+Q6+33OL2587RbpVrq2hbViqUpB /O/XQSZnrJ+tSpukKCFvs+9vxEuBZ0fWdi969VWVmy/t49z2n26Oi0XWzJx11fvCignSFRXp SizFGYmGWsxFxYkAna+Tv9ACAAA= X-CMS-MailID: 20190820133052eucas1p293f12e7cdf66e5ee1194c154fdeadaf4 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20190820123559epcas2p1be29e0bcaef4f4b1042b6177f387d7e2 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190820123559epcas2p1be29e0bcaef4f4b1042b6177f387d7e2 References: <1566304548-19972-1-git-send-email-info@metux.net> <1566304548-19972-6-git-send-email-info@metux.net> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/20/19 2:35 PM, Enrico Weigelt, metux IT consult wrote: > Use the new helper that wraps the calls to platform_get_resource() > and devm_ioremap_resource() together. > > Signed-off-by: Enrico Weigelt, metux IT consult Acked-by: Bartlomiej Zolnierkiewicz Best regards, -- Bartlomiej Zolnierkiewicz Samsung R&D Institute Poland Samsung Electronics > --- > drivers/ata/pata_bk3710.c | 5 +---- > 1 file changed, 1 insertion(+), 4 deletions(-) > > diff --git a/drivers/ata/pata_bk3710.c b/drivers/ata/pata_bk3710.c > index fad95cf..92b036d 100644 > --- a/drivers/ata/pata_bk3710.c > +++ b/drivers/ata/pata_bk3710.c > @@ -291,7 +291,6 @@ static void pata_bk3710_chipinit(void __iomem *base) > static int __init pata_bk3710_probe(struct platform_device *pdev) > { > struct clk *clk; > - struct resource *mem; > struct ata_host *host; > struct ata_port *ap; > void __iomem *base; > @@ -310,15 +309,13 @@ static int __init pata_bk3710_probe(struct platform_device *pdev) > /* NOTE: round *down* to meet minimum timings; we count in clocks */ > ideclk_period = 1000000000UL / rate; > > - mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); > - > irq = platform_get_irq(pdev, 0); > if (irq < 0) { > pr_err(DRV_NAME ": failed to get IRQ resource\n"); > return irq; > } > > - base = devm_ioremap_resource(&pdev->dev, mem); > + base = devm_platform_ioremap_resource(pdev, 0); > if (IS_ERR(base)) > return PTR_ERR(base);