Message ID | 20230306144141.15360-1-quic_mdalam@quicinc.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp1884474wrd; Mon, 6 Mar 2023 06:55:27 -0800 (PST) X-Google-Smtp-Source: AK7set+Zbts1fd61ho2c3dqO8CkBFm2NvMceMYlPFa2QdCvzrhF/qmaIlBHEQZ/VT5x4oVuYOh33 X-Received: by 2002:a17:902:ea02:b0:19c:c8c8:b544 with SMTP id s2-20020a170902ea0200b0019cc8c8b544mr14586816plg.64.1678114527288; Mon, 06 Mar 2023 06:55:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1678114527; cv=none; d=google.com; s=arc-20160816; b=HSVYsPiYHD1thWjbYs2+eD9CEHaHd5NLYEMhYHYUiVh69IlXIrTFEWc151zw07AeHf 4WwKQ2Hy8RE6RTlXzrGh72+d8z+Y9dXWFDkB1BN8ZXvhnQkEYCuUgrEk7MeWR9V43wC+ aauls4OQHyUmAmYAfHIM4K39p3/HyLNrBwJKSsSAHBX633gqzs8T5L7gjXvSw1j2VBVo 3hIDhTjjMDuAc2BhJOf+DIb+Gfmj+lvogTnET0TWYAVebAZoHzFgtj7cQsJNseuylzdB naTROnuKXvcFp3JDsthLTdpxwx/9RxvSQcoI0kMVpm/kblBKOnEZBBFPj0h71trjchSJ 9USA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=/2QNenuQo6MbSF7cRXmwd59aJmgafR20m5SsTmAQTOU=; b=tcwo7IwdRwLcboQ3utzH26V56t6ATwxrsIdoT9lNymSMKRLv3VVmhjYXWywNN+o3xL /cwzd6b23E1Yfpp5hlfvmT7/lpFWGGjpkP7DL48h+La1C9OP9OAOB1ZHvcq8m0+jkj8+ ajTn4/i/K95QxRwchSf7ppFnqtTeixIJ0HEpojc6pMYFxbRGG479wNYlIxprL/l4A3uW CSVBU9oHlZ4HvHzDulEIPYPwgJNXk0zYslpFm0afQYU6IW7hriWSs5iPXj4dGlkTgWvG tQBq15pmJ/MKx+NIBBtOkrg7Nuwp82Ju7DhDuGzRqf9VMYealdZRfCKpe4JHXPBKCEEX iVzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Nk34kNHI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 22-20020a630316000000b004fbd7827010si9148817pgd.263.2023.03.06.06.55.13; Mon, 06 Mar 2023 06:55:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=Nk34kNHI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230076AbjCFOmn (ORCPT <rfc822;toshivichauhan@gmail.com> + 99 others); Mon, 6 Mar 2023 09:42:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231210AbjCFOmd (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 6 Mar 2023 09:42:33 -0500 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 507702A145; Mon, 6 Mar 2023 06:42:15 -0800 (PST) Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 326Dgfil005007; Mon, 6 Mar 2023 14:41:50 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id; s=qcppdkim1; bh=/2QNenuQo6MbSF7cRXmwd59aJmgafR20m5SsTmAQTOU=; b=Nk34kNHI75clCX0DD2icUXU5HDxodW80So7KgJibghJSbWxHN3WzTX2+NQKdOGTZ7avl FV2M50DYYZAeBBUtlan5ZeMDQrTmD9CPnRMTaePbKpbEQd1sDnJK3atbODzFM4ntjXqx 64TE0PCsybNj3/JlXAqojxf8jhhCM/34VddaW8Uw8KcfKXfgm0euEeYvc7XXOcxnrrCM xopl4pgLphfKSISmEgOXgua0eEMgehjLZ9Ei592PtL6ycx5A+fYD/MMROyzFnUF8KS8K 24XCqaHTCr4XwczbxlwwRFXCrsGX6TA42dU4zGRPwi92YDXlUGS9WsEaMuLjopnmM9nf IA== Received: from apblrppmta02.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.18.19]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3p418751mm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 06 Mar 2023 14:41:50 +0000 Received: from pps.filterd (APBLRPPMTA02.qualcomm.com [127.0.0.1]) by APBLRPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTP id 326EfjpM011970; Mon, 6 Mar 2023 14:41:45 GMT Received: from pps.reinject (localhost [127.0.0.1]) by APBLRPPMTA02.qualcomm.com (PPS) with ESMTPS id 3p4fft5hsq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 06 Mar 2023 14:41:45 +0000 Received: from APBLRPPMTA02.qualcomm.com (APBLRPPMTA02.qualcomm.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 326EfjQE011965; Mon, 6 Mar 2023 14:41:45 GMT Received: from mdalam-linux.qualcomm.com (mdalam-linux.qualcomm.com [10.201.2.71]) by APBLRPPMTA02.qualcomm.com (PPS) with ESMTP id 326EfiSw011964; Mon, 06 Mar 2023 14:41:45 +0000 Received: by mdalam-linux.qualcomm.com (Postfix, from userid 466583) id D735412010CA; Mon, 6 Mar 2023 20:11:43 +0530 (IST) From: Md Sadre Alam <quic_mdalam@quicinc.com> To: miquel.raynal@bootlin.com, richard@nod.at, vigneshr@ti.com, linux-mtd@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, mani@kernel.org Cc: quic_sjaganat@quicinc.com, quic_srichara@quicinc.com, quic_varada@quicinc.com, Md Sadre Alam <quic_mdalam@quicinc.com> Subject: [PATCH 1/5] mtd: nand: raw: qcom_nandc: Use devm_platform_get_and_ioremap_resource() Date: Mon, 6 Mar 2023 20:11:41 +0530 Message-Id: <20230306144141.15360-1-quic_mdalam@quicinc.com> X-Mailer: git-send-email 2.17.1 X-QCInternal: smtphost X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: ag-00pLbdU9YvMST_nueD7Ca12fmZqS_ X-Proofpoint-ORIG-GUID: ag-00pLbdU9YvMST_nueD7Ca12fmZqS_ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-03-06_08,2023-03-06_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1011 adultscore=0 priorityscore=1501 mlxscore=0 phishscore=0 lowpriorityscore=0 malwarescore=0 mlxlogscore=821 bulkscore=0 suspectscore=0 spamscore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2303060129 X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759630618594207006?= X-GMAIL-MSGID: =?utf-8?q?1759630618594207006?= |
Series |
[1/5] mtd: nand: raw: qcom_nandc: Use devm_platform_get_and_ioremap_resource()
|
|
Commit Message
Md Sadre Alam
March 6, 2023, 2:41 p.m. UTC
Convert platform_get_resource(), devm_ioremap_resource() to a single
call to devm_platform_get_and_ioremap_resource(), as this is exactly
what this function does.
Signed-off-by: Md Sadre Alam <quic_mdalam@quicinc.com>
---
drivers/mtd/nand/raw/qcom_nandc.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
Comments
On Mon, 2023-03-06 at 14:41:41 UTC, Md Sadre Alam wrote: > Convert platform_get_resource(), devm_ioremap_resource() to a single > call to devm_platform_get_and_ioremap_resource(), as this is exactly > what this function does. > > Signed-off-by: Md Sadre Alam <quic_mdalam@quicinc.com> Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks. Miquel
diff --git a/drivers/mtd/nand/raw/qcom_nandc.c b/drivers/mtd/nand/raw/qcom_nandc.c index 198a44794d2d..5cc1cbc9517d 100644 --- a/drivers/mtd/nand/raw/qcom_nandc.c +++ b/drivers/mtd/nand/raw/qcom_nandc.c @@ -3269,8 +3269,7 @@ static int qcom_nandc_probe(struct platform_device *pdev) if (ret) return ret; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - nandc->base = devm_ioremap_resource(dev, res); + nandc->base = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(nandc->base)) return PTR_ERR(nandc->base);