Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp37264580rwd; Tue, 11 Jul 2023 11:41:29 -0700 (PDT) X-Google-Smtp-Source: APBJJlGEM492FMSWJreTQBa54BCqnU/ksErQ4plrLu33XWAK80cHUhY+TyBmWl6kVGm/vhDYV/as X-Received: by 2002:a05:6a20:442a:b0:11b:3e33:d2ce with SMTP id ce42-20020a056a20442a00b0011b3e33d2cemr22521673pzb.1.1689100889512; Tue, 11 Jul 2023 11:41:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689100889; cv=none; d=google.com; s=arc-20160816; b=zGh8cRE4eSlOSLVspyKsqG/rLKt2pA7/kta9YsIoAe+9FUVGyTr1C7oyqD/jVKLuHh DUhLchaDEPTDWkiKFQFlNUU2OtcRyUl06crLIUTvlaqk3SJI/sF0MfFqvIvs2GPmP9i4 FWwGmqH1pASpaqZuRlwB/eqnWGi4Q07TAqp/sdfVYv7bFVApZq+TAkVgx80GvE0a+6/a caJOIJiDCp8WOERxeLA4xarWkVKC3v3eVUacCawsxDheWegOx5Cvt9U6eMUllhf4VmUO HKou2/dWsT/ik5EQQcsZSCTLOzi1AgZ6hVBwLHiOhP6R+HYxMv1WtpEMleX5tCLUZBdq hwFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=E7xPaNuGxjRVce9if/BkLrzBXCRANFyenyUfHAqEJI4=; fh=HeKx4t+Do8u6jDBTRAAY6W3pcvQdy+g+otfzFeUH2RQ=; b=H5ZR/QuZ8F3+lO/B3s+Gt9/FbLsflxrEoM51HQess2plPm1MLejCqbbFmUvLCfTNHf gxhqiJn3OODTBz27ygfS/zYjffq4au0NMLMcnjgzvDmkGOVXxoEos7fqa6y0ny2wXM31 cgTUqEyI5a355IEkLqp/o+/fJdjN2BTZXv5aTRWaTLOA2zl9eO/s05NiyZKParEBWuI4 U3GmAzsI+MagYYrOs9EdsG3KwxphxiYC0xe7i6Sk7uQZqFN5IwOb6ysQjYR00nKIIg3I FZE58PqSbI/cLvdh7szuODYpIBRjzW6eLsysp3zypQh+U/DUk9PSrILIPJJdNLPytsIr mA7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=qw9DZGtJ; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a64-20020a639043000000b00553c2f8509esi1705325pge.706.2023.07.11.11.41.17; Tue, 11 Jul 2023 11:41:29 -0700 (PDT) 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=@gmail.com header.s=20221208 header.b=qw9DZGtJ; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231674AbjGKSXJ (ORCPT + 99 others); Tue, 11 Jul 2023 14:23:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229547AbjGKSXI (ORCPT ); Tue, 11 Jul 2023 14:23:08 -0400 Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BBDE2A7 for ; Tue, 11 Jul 2023 11:23:07 -0700 (PDT) Received: by mail-wr1-x42b.google.com with SMTP id ffacd0b85a97d-3141c3a7547so6234090f8f.2 for ; Tue, 11 Jul 2023 11:23:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689099786; x=1691691786; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=E7xPaNuGxjRVce9if/BkLrzBXCRANFyenyUfHAqEJI4=; b=qw9DZGtJtiv5SMYXbeSqGBDE2tktVR1mtvGA18xXWNWGPUNx/4O/F7gqNn6XGZiAm7 M2CL+ZrNoWd1R7k64Mq8q1Xv2i2768qfiNBlh1TH9ZC0jWukI7o42iWHWtMo8rbpX5Fm wmIUPZnHXq8KLJfiOyMXFMvNAIK9Zz532+cu5yi0xO9pqjsFHh5IZMF2UqjN6EIyd523 sUvML+62H3KBwK32NzOSmxkpjMLV2cy4FiEyxUUqK6uivBfTMHgU5mweSxqpXftBfdf+ yKhaBcTt0nyWcmMZa7kY2Jt7HS0N7rGFaarSg5NAoSvPuNF5ePoR1GrMcSej4rDVqx5w FAng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689099786; x=1691691786; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=E7xPaNuGxjRVce9if/BkLrzBXCRANFyenyUfHAqEJI4=; b=igWvbmvDlBEJZIxBLFiKq3fBKXibHKH2FKoUxyjjRVQ1Xa5mVpI8ZTdHLoPkOI4x28 qHycFY9F0c00kkBjVtx/1tq3BFMXXY8A4P3y9wkubMdxDeXj1RaTfw3nXmi8EXA2NayS Kn1kEhSefbRg+RudEbqXN2YtxoF4LGi07pv3Mrb/jyqwdsPvRzUI34dxdtP6h9Gwlfo2 VZbWdkj6ef0KbJv+2v95nC0srk65Q6eJID/wp+qwCReuyuo3ZEEr3uAHzRAVOmuLV53d h6BwkX3OGAbGk+Qnc1q1AhzNezPoneTE02hgoGLHGHr8OpPwAYVaCjgS7dLKRX3aAluR KhNA== X-Gm-Message-State: ABy/qLZF9hTqMYwEHVGLLdv6QSuqUII4OSLaRjvd6ouT/mNNIoBXnAYt 4Re63IEJtkYys0Dr2fuzlew= X-Received: by 2002:a5d:4582:0:b0:313:ede8:9f13 with SMTP id p2-20020a5d4582000000b00313ede89f13mr15134045wrq.32.1689099786086; Tue, 11 Jul 2023 11:23:06 -0700 (PDT) Received: from jernej-laptop.localnet (82-149-1-233.dynamic.telemach.net. [82.149.1.233]) by smtp.gmail.com with ESMTPSA id d17-20020adfe891000000b003143cdc5949sm2967568wrm.9.2023.07.11.11.23.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jul 2023 11:23:05 -0700 (PDT) From: Jernej =?utf-8?B?xaBrcmFiZWM=?= To: Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , Chen-Yu Tsai , Samuel Holland , Yangtao Li Cc: Yangtao Li , linux-mtd@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH 01/18] mtd: rawnand: sunxi: Use devm_platform_get_and_ioremap_resource() Date: Tue, 11 Jul 2023 20:23:03 +0200 Message-ID: <2230707.iZASKD2KPV@jernej-laptop> In-Reply-To: <20230707040622.78174-1-frank.li@vivo.com> References: <20230707040622.78174-1-frank.li@vivo.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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: X-Mailing-List: linux-kernel@vger.kernel.org Dne petek, 07. julij 2023 ob 06:06:05 CEST je Yangtao Li napisal(a): > 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: Yangtao Li Acked-by: Jernej Skrabec Best regards, Jernej > --- > drivers/mtd/nand/raw/sunxi_nand.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/mtd/nand/raw/sunxi_nand.c > b/drivers/mtd/nand/raw/sunxi_nand.c index 9884304634f6..db36bd755b8d 100644 > --- a/drivers/mtd/nand/raw/sunxi_nand.c > +++ b/drivers/mtd/nand/raw/sunxi_nand.c > @@ -2087,8 +2087,7 @@ static int sunxi_nfc_probe(struct platform_device > *pdev) nand_controller_init(&nfc->controller); > INIT_LIST_HEAD(&nfc->chips); > > - r = platform_get_resource(pdev, IORESOURCE_MEM, 0); > - nfc->regs = devm_ioremap_resource(dev, r); > + nfc->regs = devm_platform_get_and_ioremap_resource(pdev, 0, &r); > if (IS_ERR(nfc->regs)) > return PTR_ERR(nfc->regs);