Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp1041433rwb; Wed, 26 Jul 2023 06:51:36 -0700 (PDT) X-Google-Smtp-Source: APBJJlE8oSMdGzM+s48KQgvv21RPWbbgbFddJko9wYLj9lu7/gaFGf4kKnVrb5VhXBPZP9qJmu4A X-Received: by 2002:a50:ee18:0:b0:51d:d390:143f with SMTP id g24-20020a50ee18000000b0051dd390143fmr1873174eds.5.1690379496505; Wed, 26 Jul 2023 06:51:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1690379496; cv=pass; d=google.com; s=arc-20160816; b=hact9qUJ4nD7Jj72VIPn6+2FEWdlWtW4Si+UlQX627Sg3A5Nkgi8t4d1dxpFRso6bk Q6eksXIXR1umvGkfa7q2RzNCVaSfyUxg/ZUdCKwGzMgh7Hr98el6fXrP9G1ycyObPCTI Owk1SBFFSaoQ/5MRsFEOCylZOG2MfL/nXZe6R6Ra/zPaDQukYWCv+y6YJG+C8HGj4Nt6 khbd9zYwSXbSkbzzDOpSbFJgv+h6+/WISvw3aTi8GeFn9P6tnu6kCWNO1U69o8/XHwL6 5p9VYxKGrpZUW2hvewVI7SU7ezvZ5wFOQdHyk1SXiUB43drx6lk9FnvRPd9dgZeoqBgG AP1g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=oVwciaBlemwynmnommsPsCO/7FxJBCgDLAsFVxM2ByY=; fh=LsDejH42Yp3siA2XEl5LKAcma8F5xj8lL4j3itE1xBs=; b=WdXHhn4hN6C7Wis9z5/4mSbp5WU16DoMwntOd+qMCoHG0sIZIqxHU6kQ4C1/OVcvGn n3+iODFzhKZ7cxa6lfVo3ddviIQ58uyTe05yIufTGHzU1TOnBgrmhDtScJCnJMwH7dyo OQvvRRAY5XjzqWH2wbR56Ii1Q2qx6OmtOQSXLCpYfbMThGuDneQvrOEyRcVXIh+ocyaJ 8U1cXvqDu5j2h67e+EXpWWBsKHiCOYkT15uMyYpT6yO9lGBkPnl3vmDJZAtCWZBhRKK9 NHnpH9omia87DWaKDFWcOfYMnXROyIdNnqQiBgDHZQ7YNEa6XtBmuHgQ7Bubu7M6NR+G zjGA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=jMeCmxgo; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.com); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vivo.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r8-20020aa7da08000000b0051e05fbbc31si5092623eds.56.2023.07.26.06.51.11; Wed, 26 Jul 2023 06:51:36 -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=@vivo.com header.s=selector2 header.b=jMeCmxgo; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.com); 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vivo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234244AbjGZLri (ORCPT + 99 others); Wed, 26 Jul 2023 07:47:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234284AbjGZLrh (ORCPT ); Wed, 26 Jul 2023 07:47:37 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2101.outbound.protection.outlook.com [40.107.255.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 992862703 for ; Wed, 26 Jul 2023 04:47:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=nNY3N0/2QbRoHDPCQNoQrQKnp5daj4ctF33XX2YUr5Y+5HWBkZ/8oJSR/1DYlmkr6RpBvOfwKlmKuSSRJN+lW47Y6D/cMX4j2gpi0tbhPq7gP8Mqfney1P90H2cH5EFwqf6PiZCEbdvdCx1qTpo68XyBZWo2TrhoC2z88aCuP25j1XtRLCOmqlhrqdKYc7HmbAj1gefXclo6P3vo6K8JXMde/5AdeWT+rPhrLFCEYORFfmQtLWcjpVv194Oa2EQ2N8yWrPJKegRgb6YsYRO+Q5q3MfvjqgAHJgzjvq/B34Qy04o5S1pQXJvjaaiXfVRFYVPN0xZrmD8B2S0gA2Fe9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=oVwciaBlemwynmnommsPsCO/7FxJBCgDLAsFVxM2ByY=; b=B0pVOhcdATAEreNEKVeE0j3m8v3ROln9ucByGDmuU1abzwuNrSkfzrP6b5LNUCiWXMk/AN+ReBOX//jpm62jZT8k4oafoyVCoPaIdKexjzZpV7kSU9T52JidkPmrhb9OtVWGtN+hXAZuh01Fsdq84Y5oEo/9ItkCKabaFnwyDRl0iLzZK8S6nFxCSCfQw9OBql+TPUZpVkzD3uRrZq6jWhCnAQmd7wvOgMfAFq9Qy9Rza4wmpoi4J7iW435/sAxyueCTdTn0+1Vj+sP0mcsI8DiL3gMJ/POLxwHql9AqL3NSlwocJayns4UzsUoRwJrN+c7gQTA8vvCddIBwpviOCA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vivo.com; dmarc=pass action=none header.from=vivo.com; dkim=pass header.d=vivo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vivo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=oVwciaBlemwynmnommsPsCO/7FxJBCgDLAsFVxM2ByY=; b=jMeCmxgok/iQkT6pT7+xUVGOzLgevTMSlC6EGwnM5JKHUyBXWTv+dRPEPAKjPiHmbxGaTZpAiLgf1mmcpD+jBKXKyUHGK5Hi23LJuibcm6h4qYbythwOe7n/dueqX9hS7vJt1Kav6s/nUV4qhAoQkDuammPWmxw44SR8Z9dgAfmTrxrIob4l+moWANTzyU9Pgezx4Eb1CMWtk1fqMg0eAeDOVXY3dlUple8btRcO2sFpT1P0A4fmoy/XLrrKrbgJUqS47wcIL3mcXi3Tv5q+ZhNUZENFe9YifPSKQZex6gyonbfH71aQgHB3/lYkYsyFr3lzvv7bUZxDWfpCzEMlXA== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from PS1PR0601MB3737.apcprd06.prod.outlook.com (2603:1096:300:78::18) by TYZPR06MB5027.apcprd06.prod.outlook.com (2603:1096:400:1c9::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6631.29; Wed, 26 Jul 2023 11:46:05 +0000 Received: from PS1PR0601MB3737.apcprd06.prod.outlook.com ([fe80::74f9:2f8c:e5b8:a573]) by PS1PR0601MB3737.apcprd06.prod.outlook.com ([fe80::74f9:2f8c:e5b8:a573%6]) with mapi id 15.20.6631.026; Wed, 26 Jul 2023 11:46:05 +0000 From: Wang Ming To: Philipp Zabel , Stephen Rothwell , linux-kernel@vger.kernel.org Cc: opensource.kernel@vivo.com, Wang Ming Subject: [PATCH v3] reset: hisilicon: Use dev_err_probe instead of dev_err Date: Wed, 26 Jul 2023 19:45:45 +0800 Message-Id: <20230726114555.5011-1-machel@vivo.com> X-Mailer: git-send-email 2.25.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: TYAPR01CA0092.jpnprd01.prod.outlook.com (2603:1096:404:2c::32) To PS1PR0601MB3737.apcprd06.prod.outlook.com (2603:1096:300:78::18) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PS1PR0601MB3737:EE_|TYZPR06MB5027:EE_ X-MS-Office365-Filtering-Correlation-Id: c3183f6e-3d94-406d-8777-08db8dcde4b2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: h3pLdHFu22QEz5GmVIz2pTPW5vCq1rMiDMlhJA8UTxuj5hjJADdFQkAHFZftIxmu5uA3AJ8oEPu/EMzoRqzCxj+U9N42huUCe5EuXQWvcDtTIzbMyalMbNn5A2aw7AHK9VNT3owecAD1vPFOT30vGqWvVLrQLtiWsTPGqvYqx27LnJLI/MInO37wUqn2VDcc9QWFgou8bzCjfmGIID6iSiBa2ZjwffCl9CO/K5N6oyP70eohFE9PHjCURLsF15vJsgSFYVqo8m1Y48FAdbf1lmgCyGzxy936pquo2y9Mr6z2bYE8cZJHwosGAIwyvdoTji3VqLAUxnEVm4YTu2kCGhi5AuZiHZIZglYQCwKVGYu+0YqSgGYO4YW1HHwbwwGXezLtTTN8rh4LIXeV0cGtK8B1OYNdmoyulW2uhtoeigxUsvCBPcSNykdaxwIYhA8Hr2Z7C0toC0DmdtUAf9o4n8KYnsLHk3WRnp3hxgWnnHICQL0SPcVeFnrYQNYKQeP6SAKz07g+RE8nMjwY3TvBvtDFPcZh1b0XoFuMdncoYw1k+Ucx8doplHL5UMb08nT+Eu8YKhzp+0pNoNzcc09NXceDPqKL5PuPdX79SFKTbLCGN7QQ2D4wTl7k1YdBXF0x X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PS1PR0601MB3737.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(396003)(39860400002)(136003)(366004)(376002)(346002)(451199021)(6666004)(6486002)(52116002)(478600001)(83380400001)(6506007)(107886003)(6512007)(1076003)(26005)(4326008)(66476007)(66946007)(110136005)(38350700002)(38100700002)(66556008)(186003)(2616005)(5660300002)(41300700001)(4744005)(316002)(2906002)(8936002)(8676002)(86362001)(36756003);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?73EGvTeNzKyoNB1TmSF3Wm1zYX+yhOMRSoAt6tHG6nx5qxFsQGDy4kjkZYmg?= =?us-ascii?Q?DoCI6luackaQ0qzx7O1w5nbt2ZXcqHPfVPzCx2YTHS2BbjG9sg2NQvn6Qp4t?= =?us-ascii?Q?mOX3zgCgrX2HUE0QaEyIz9yMEbel80Ind61ztSfgaCDBgJIfL5+wyuKd3uET?= =?us-ascii?Q?E+AQrN6O1bYoI73f0s0s/Ief7yVKpmO+tPvZTuiw8UXXYM8NDGSSN5nIUZnX?= =?us-ascii?Q?1JtBvON0mFcBKoAQX6cCprlvwsv+eHe6T+DWq0OkwzBieaiVnwmxQGq3NNnn?= =?us-ascii?Q?fJwam6fOUV85QoYlXj+LYC5L3EJ+2Zf8JBpEMWQpg+sVU/cI5OxJlmM7ctCf?= =?us-ascii?Q?pc6cfWm6JiJp61qffmWl9PrNuIH8CJ6livXuUog6n+X8BJw/Fx3u35fhjOQ3?= =?us-ascii?Q?AK7UdPFAI6G/lZYE7ZicsIIfX+ltc3aHHHdX+KN2kZWE0WZMeP3jGHg2fkA6?= =?us-ascii?Q?9e4GBsHeCJbHvWsIKMsGixqbxgxgIEZzf5Tg/6H4D8V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P5fCM/adRsftHmH/hPq4mcGfrDAdyEDHf33Ak6O+cxEHJApj2sWwHy07XXe4?= =?us-ascii?Q?k4r32i+xkajkPonDCsfNw5ZK2BgN6i+gIOJARHacgwbc/M+bcGHYrs7EX1y6?= =?us-ascii?Q?XFRR1LqoGTIrDq+oGHilidkhjkXOxR0/6LP8tthFV1F0FbNg8KzoqVWDvZx7?= =?us-ascii?Q?1PnHNbIygpzGCehhH8oAN+PKeNMctrcaNkWadnsm?= X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: c3183f6e-3d94-406d-8777-08db8dcde4b2 X-MS-Exchange-CrossTenant-AuthSource: PS1PR0601MB3737.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jul 2023 11:46:04.9389 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 923e42dc-48d5-4cbe-b582-1a797a6412ed X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 7ntA7GEB0L0nz0Tu5nlJ5o5ff+1gTN5w0ieGwjCl74jP6HOXF7nYkEFH5MyWIMXC+DTeUcmY3CiGPlW2XX0p/g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYZPR06MB5027 X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,RCVD_IN_VALIDITY_RPBL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no 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 The probe process may generate EPROBE_DEFER. In this case, dev_err_probe can still record err information. This helps simplify code and standardize error output. Signed-off-by: Wang Ming --- drivers/reset/hisilicon/reset-hi3660.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/reset/hisilicon/reset-hi3660.c b/drivers/reset/hisilicon/reset-hi3660.c index 965f5ceba7d8..22a9f87b4979 100644 --- a/drivers/reset/hisilicon/reset-hi3660.c +++ b/drivers/reset/hisilicon/reset-hi3660.c @@ -90,8 +90,8 @@ static int hi3660_reset_probe(struct platform_device *pdev) "hisi,rst-syscon"); } if (IS_ERR(rc->map)) { - dev_err(dev, "failed to get hisilicon,rst-syscon\n"); - return PTR_ERR(rc->map); + return dev_err_probe(dev, PTR_ERR(rc->map), + "failed to get hisilicon,rst-syscon\n"); } rc->rst.ops = &hi3660_reset_ops, -- 2.25.1