From patchwork Fri Mar 24 03:07:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: ye.xingchen@zte.com.cn X-Patchwork-Id: 666789 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3C642C6FD1C for ; Fri, 24 Mar 2023 03:07:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230495AbjCXDHz (ORCPT ); Thu, 23 Mar 2023 23:07:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45126 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230040AbjCXDHy (ORCPT ); Thu, 23 Mar 2023 23:07:54 -0400 Received: from mxhk.zte.com.cn (mxhk.zte.com.cn [63.216.63.40]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06BF023847; Thu, 23 Mar 2023 20:07:53 -0700 (PDT) Received: from mse-fl2.zte.com.cn (unknown [10.5.228.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mxhk.zte.com.cn (FangMail) with ESMTPS id 4PjRwR3XZCz8R039; Fri, 24 Mar 2023 11:07:51 +0800 (CST) Received: from xaxapp03.zte.com.cn ([10.88.97.17]) by mse-fl2.zte.com.cn with SMTP id 32O37UC7057835; Fri, 24 Mar 2023 11:07:30 +0800 (+08) (envelope-from ye.xingchen@zte.com.cn) Received: from mapi (xaxapp02[null]) by mapi (Zmail) with MAPI id mid31; Fri, 24 Mar 2023 11:07:31 +0800 (CST) Date: Fri, 24 Mar 2023 11:07:31 +0800 (CST) X-Zmail-TransId: 2afa641d13f3ffffffffff9-41a36 X-Mailer: Zmail v1.0 Message-ID: <202303241107315726171@zte.com.cn> Mime-Version: 1.0 From: To: Cc: , , , , Subject: =?utf-8?b?W1BBVENIXSBtZWRpYTogaGFudHJvOiB1c2XCoGRldm1fcmVzZXRfY29u?= =?utf-8?b?dHJvbF9hcnJheV9nZXRfb3B0aW9uYWxfZXhjbHVzaXZlKCk=?= X-MAIL: mse-fl2.zte.com.cn 32O37UC7057835 X-Fangmail-Gw-Spam-Type: 0 X-FangMail-Miltered: at cgslv5.04-192.168.250.137.novalocal with ID 641D1407.000 by FangMail milter! X-FangMail-Envelope: 1679627271/4PjRwR3XZCz8R039/641D1407.000/10.5.228.133/[10.5.228.133]/mse-fl2.zte.com.cn/ X-Fangmail-Anti-Spam-Filtered: true X-Fangmail-MID-QID: 641D1407.000/4PjRwR3XZCz8R039 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org From: Ye Xingchen Switch to devm_reset_control_array_get_optional_exclusive() API. Signed-off-by: Ye Xingchen Reviewed-by: Philipp Zabel --- drivers/media/platform/verisilicon/hantro_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/verisilicon/hantro_drv.c b/drivers/media/platform/verisilicon/hantro_drv.c index b0aeedae7b65..143a9a2edc4a 100644 --- a/drivers/media/platform/verisilicon/hantro_drv.c +++ b/drivers/media/platform/verisilicon/hantro_drv.c @@ -945,7 +945,7 @@ static int hantro_probe(struct platform_device *pdev) return PTR_ERR(vpu->clocks[0].clk); } - vpu->resets = devm_reset_control_array_get(&pdev->dev, false, true); + vpu->resets = devm_reset_control_array_get_optional_exclusive(&pdev->dev); if (IS_ERR(vpu->resets)) return PTR_ERR(vpu->resets);