From patchwork Wed Aug 30 20:57:36 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe JAILLET X-Patchwork-Id: 718893 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 6A703C83F01 for ; Wed, 30 Aug 2023 20:59:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240647AbjH3U7X (ORCPT ); Wed, 30 Aug 2023 16:59:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47134 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240641AbjH3U7X (ORCPT ); Wed, 30 Aug 2023 16:59:23 -0400 Received: from smtp.smtpout.orange.fr (smtp-30.smtpout.orange.fr [80.12.242.30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9892DE4C for ; Wed, 30 Aug 2023 13:58:47 -0700 (PDT) Received: from pop-os.home ([86.243.2.178]) by smtp.orange.fr with ESMTPA id bSFuqpu30bNd0bSFuqT1NL; Wed, 30 Aug 2023 22:57:41 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wanadoo.fr; s=t20230301; t=1693429061; bh=AMW7RcTNB2xicBX3OHcLvhBYaIQQ+INP0gPrx6N+OEQ=; h=From:To:Cc:Subject:Date; b=g6Kfl60gOlQzYEUaGXwmQotJTETbzMD0nNBaJLnRMfNXFsG7dXkzPD12r4bFQ0MmR 14eD+X1gHyc5CP6ZUt32a6FkCMeWRndiSRgeVHaIRcobcxfKj+lDF3wpBgbtmQBzmq LS2YdKKL6IKZrG51rMwKPLGNJ+KAALUHkR9h+h38DXOxpYwejMxOBar5td2pWQoUSk sQc6yAxTbDvpY0EOda476Ly7SK261Chp+TYdxEVKJirq+vh8P/DZZKDcmmG315Ff0V hKGcQWQqLSbERIHFbnwV33mbhwAIyNvz1VPPWAMx/TZ1a1vKsmj1xH1CYSFJm8gKE2 1dSWNsIeu5s6A== X-ME-Helo: pop-os.home X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Wed, 30 Aug 2023 22:57:41 +0200 X-ME-IP: 86.243.2.178 From: Christophe JAILLET To: Jacopo Mondi , Kieran Bingham , Laurent Pinchart , =?utf-8?q?Nik?= =?utf-8?q?las_S=C3=B6derlund?= , Mauro Carvalho Chehab , Sakari Ailus Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET , linux-media@vger.kernel.org Subject: [PATCH] media: i2c: max9286: Remove an incorrect fwnode_handle_put() call Date: Wed, 30 Aug 2023 22:57:36 +0200 Message-Id: <26387273c902ce938a25647b6ccd9b8584284096.1693428894.git.christophe.jaillet@wanadoo.fr> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org The commit in Fixes has removed an fwnode_handle_put() call in the error handling path of max9286_v4l2_register(). Remove the same call from max9286_v4l2_unregister(). Fixes: 1029939b3782 ("media: v4l: async: Simplify async sub-device fwnode matching") Signed-off-by: Christophe JAILLET --- drivers/media/i2c/max9286.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/media/i2c/max9286.c b/drivers/media/i2c/max9286.c index f27a69b1b727..fc1cf196ef01 100644 --- a/drivers/media/i2c/max9286.c +++ b/drivers/media/i2c/max9286.c @@ -1110,7 +1110,6 @@ static int max9286_v4l2_register(struct max9286_priv *priv) static void max9286_v4l2_unregister(struct max9286_priv *priv) { - fwnode_handle_put(priv->sd.fwnode); v4l2_ctrl_handler_free(&priv->ctrls); v4l2_async_unregister_subdev(&priv->sd); max9286_v4l2_notifier_unregister(priv);