Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp4065707ybl; Tue, 20 Aug 2019 06:33:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqzP/KBoKzEDvtstSm9sz5LYOxRiWiJggyo6CelneDX+Mrt9l1N5C4jYcZs2tukTX4CYlsap X-Received: by 2002:a17:902:aa91:: with SMTP id d17mr27312863plr.74.1566307998721; Tue, 20 Aug 2019 06:33:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566307998; cv=none; d=google.com; s=arc-20160816; b=f6WGki+QZ6FVzremzwyf+zvVDXYZC1lLHUL3wWz10ewW4102Mt4LSIZvWnSc4TVvf8 IVN5jhJgFXVJ8Jp5B3HOUVw/53bcjAfYRJY1/eZR7OZAEw+dMH5DEFWU2/pHhH8Lz6ND SCWzGl6OZjDXg9p06BqexSWWMXGQi6Nbik72/rqIhB7wRm3T2rd4MVSli+z4adN3Ngag jF2BLojjBZeu/tUxxeh509k1wZO+qPSdKRLcvVxKZk/nQilIYvv82OX+/ZQ0CyT0REBC SEA+MeWjD9NtTftYO14B9JGWQOcuPZosN5xtmnRkF7uqwNlQF5WKd0yCI5+zfm2WR2Jp HLZw== 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=/M243j4OJT6eoQ8Z/Cqc29WkvI3Ya4CgdMgE4sAnkHQ=; b=PG1ak7+d9v+tuoGGJgXgKSMAn8AUCXuV7Qbu9fQxPr7Sl/cs+m5DoPawPCYKMZGb9Z bLeJGrBYKmBLpSZtX9G61FLrkCXdDFa3P2zqb611zXcngK+PMIP2ocQ2dH96wM4F7DJR caYQEMrJCSFHb3s3Paujk25Bc70AcQBBRJoDp8U3S8aPZDVzpDxaDu4LJxJB0Ysn5Zks F7BsTWo3gRWcVw1EocMsx8+8nETReqdY2xIPf97k6bowp2ig3Qy/kvvxs3yNTwVAzpbt jXF15/N8rFj621G5uTBxDlzb6+Y46ahyaWDkceWM0KmCI94saZKDTYNFzUiIjb/9OJuc JAzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=tyuTrmlI; 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 u5si12163215plq.207.2019.08.20.06.33.03; Tue, 20 Aug 2019 06:33: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; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=tyuTrmlI; 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 S1730080AbfHTNbj (ORCPT + 99 others); Tue, 20 Aug 2019 09:31:39 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:40569 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729978AbfHTNbi (ORCPT ); Tue, 20 Aug 2019 09:31:38 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20190820133136euoutp01941330f91ee044e2839e0d3afcc6f9cb~8pLukQQeb3048830488euoutp01M for ; Tue, 20 Aug 2019 13:31:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20190820133136euoutp01941330f91ee044e2839e0d3afcc6f9cb~8pLukQQeb3048830488euoutp01M DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1566307896; bh=/M243j4OJT6eoQ8Z/Cqc29WkvI3Ya4CgdMgE4sAnkHQ=; h=Subject:To:Cc:From:Date:In-Reply-To:References:From; b=tyuTrmlIDcA1Ky2w2YUYiQH+zlazOtFshh69gNZBNzaYc2eJ3n0UTvMbom6XmnRMS 43ynRy57ZhMq7whJP4xGRFJA7Xf6+5fxwEIYXkTGFDa58A1sCk4MwjdHIucDsPPmaM VI9ydvkwYl1cNmNgBQb2Cgp8zdi8U+jSK0+Uavt8= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20190820133135eucas1p23876cb7a542bc53f89fe806781bd786b~8pLty4QFm0761707617eucas1p2g; Tue, 20 Aug 2019 13:31:35 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 5C.F0.04469.736FB5D5; Tue, 20 Aug 2019 14:31:35 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20190820133134eucas1p196767a0db3e3554cb4dc3be227ee5ed2~8pLs9eADE3070630706eucas1p1Q; Tue, 20 Aug 2019 13:31:34 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20190820133134eusmtrp1681ed982675d5340723d047e678919b4~8pLsvHUel1787317873eusmtrp1Y; Tue, 20 Aug 2019 13:31:34 +0000 (GMT) X-AuditID: cbfec7f2-54fff70000001175-01-5d5bf637a11c Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 3E.A5.04166.636FB5D5; Tue, 20 Aug 2019 14:31:34 +0100 (BST) Received: from [106.120.51.71] (unknown [106.120.51.71]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20190820133133eusmtip154dcafbf995a88828f79d7651beb0eba~8pLsXsReK1939119391eusmtip1V; Tue, 20 Aug 2019 13:31:33 +0000 (GMT) Subject: Re: [PATCH 7/9] drivers: ata: sata_dwc_460ex: 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: <68b89d3d-9feb-1b62-5b17-cc97cb5bd225@samsung.com> Date: Tue, 20 Aug 2019 15:31:32 +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-7-git-send-email-info@metux.net> Content-Language: en-US Content-Transfer-Encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrFKsWRmVeSWpSXmKPExsWy7djPc7rm36JjDV6vZrdYfbefzeLN8elM FjcbdzNZTPmznMni2I5HTBaXd81hs+j8MovNgd3j8tlSjzvX9rB5TPjwls3j/b6rbB6fN8kF sEZx2aSk5mSWpRbp2yVwZfy+eJmpYBp3RcPfaUwNjMs5uxg5OSQETCT2Pj/O2sXIxSEksIJR 4sTOzUwgCSGBL4wSs87IQCQ+M0r0/p7HDNPx8dNfRojEckaJ7RsOM0M4bxklpn/+C1YlLBAr sWnLFDYQW0TAXOLxk4VgO5gF5jBKfPy7jQUkwSZgJTGxfRUjiM0rYCfx9/IXsAYWAVWJ7Zsu gQ0SFYiQuH9sAytEjaDEyZlPgHo5ODgF7CWW7pQCCTMLiEvcejKfCcKWl9j+dg7YQRICu9gl dn7czQhxtovE5NlToV4Qlnh1fAs7hC0jcXpyDwtEwzpGib8dL6C6tzNKLJ/8jw2iylri8PGL rCCbmQU0Jdbv0ocIO0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uJJucDk0FeSbyhqaG5haWhubG5 sZmFkjhvh8DBGCGB9MSS1OzU1ILUIpg+Jg5OqQbGyUu3yOif5DLeJtnGWu7nxN4/Y2IB6053 z9QWgeQ1NheP8jTonvxzR649RGLyy1iGVwo2OXf3l678IBfxob2T035Hi/OMlvOKuw2q5SLv FCWYdD5eEXM2Y7a0baz0yZZTO46sOllc5l7dKlPQdfe4+qmrbFNWzm285fbiR8L2Rft+VIQ8 23BQiaU4I9FQi7moOBEAddmfgc4CAAA= X-CMS-MailID: 20190820133134eucas1p196767a0db3e3554cb4dc3be227ee5ed2 X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-RootMTR: 20190820123601epcas2p1494c1485f111056fe585668e3591d756 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190820123601epcas2p1494c1485f111056fe585668e3591d756 References: <1566304548-19972-1-git-send-email-info@metux.net> <1566304548-19972-7-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/sata_dwc_460ex.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/ata/sata_dwc_460ex.c b/drivers/ata/sata_dwc_460ex.c > index 9dcef6a..de248fa 100644 > --- a/drivers/ata/sata_dwc_460ex.c > +++ b/drivers/ata/sata_dwc_460ex.c > @@ -237,7 +237,6 @@ static int sata_dwc_dma_init_old(struct platform_device *pdev, > struct sata_dwc_device *hsdev) > { > struct device_node *np = pdev->dev.of_node; > - struct resource *res; > > hsdev->dma = devm_kzalloc(&pdev->dev, sizeof(*hsdev->dma), GFP_KERNEL); > if (!hsdev->dma) > @@ -254,8 +253,7 @@ static int sata_dwc_dma_init_old(struct platform_device *pdev, > } > > /* Get physical SATA DMA register base address */ > - res = platform_get_resource(pdev, IORESOURCE_MEM, 1); > - hsdev->dma->regs = devm_ioremap_resource(&pdev->dev, res); > + hsdev->dma->regs = devm_platform_ioremap_resource(pdev, 1); > if (IS_ERR(hsdev->dma->regs)) > return PTR_ERR(hsdev->dma->regs);