Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2283499iof; Wed, 8 Jun 2022 01:23:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyGy/SywBm9ASWO1p01+BYU+FFp9s86IRetadhCFfHfy7VTw5sgbOUAl+yP3hCCwGYG4mBl X-Received: by 2002:a17:902:cccc:b0:15a:30ec:2f56 with SMTP id z12-20020a170902cccc00b0015a30ec2f56mr33042921ple.169.1654676582167; Wed, 08 Jun 2022 01:23:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654676582; cv=none; d=google.com; s=arc-20160816; b=FqTtRlE+HA+wutPXQIbWbG3XtiZ2Yv+bt+2CByMArs2HqyHvk07osJ5KfIVq5K2syK 1oBYIV09tHcpWx14YgSBYvNCp5ebeLRkTVuR1ORiCBYPUg5QfyDgAvglsFPpuk9nvaLt KT95bmNew0zL+n5om77SYk5o1CohfOig8sPYYj7fuAlYwqKeUkEf35rqBsEXKSnJKAa8 o+d3UjqyC77AAcOVd/XxsdCxxEjcKgM7plNHDLa8AWpzqUZFi6Dxj5tL6GZIFcMR1RYr jMXwqGeueZJyU8fo/TJejeq4UR0kbgmizJsmXZoVghkZ5AfdhSszp9dlqEWX4rytj93j v5Lw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=2IU4t1CMebYljp2L0T3IBpqQ8dws6fBB2CcvvYYDTMM=; b=q9vNSHvUrTiwRWPZnc9yPZuMPMYDy9U8UwXKXcxDcmmsHp4GIiYvPJwfa74bZsRMF1 liPXsuCaJZasiswXgAWjmuM8OyzrVKJbxElrZ0Pp+RCvEXMb8XUN0t07ep02sAReZpmQ OaYnbbPRXuM9qZbPWJtvpJL7HoD06E3PMdlJKKzx5UXbZKG0cWfloEk7SiSTiIgZ/kE4 geqtkVQNdYoDsH/Mpb3HNPiAIGWozASaKd1V9JSqdG1efwiUQe9aSGncKKjE9F0C9dXx v3+0TVC3toMYnknSxw/gk/JYzMdjmDXMui69ijjghBfY2jTM3S/yCYReZTuxGiu7Udb2 xTdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=euZ1V3lF; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id z4-20020a170902ccc400b0015852f2a130si26274822ple.620.2022.06.08.01.23.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jun 2022 01:23:02 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=euZ1V3lF; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3D3471CE7A2; Wed, 8 Jun 2022 00:53:26 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347799AbiFGRnJ (ORCPT + 99 others); Tue, 7 Jun 2022 13:43:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347859AbiFGRbU (ORCPT ); Tue, 7 Jun 2022 13:31:20 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9703B1059CB; Tue, 7 Jun 2022 10:28:37 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id BC931CE2396; Tue, 7 Jun 2022 17:28:35 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C8030C385A5; Tue, 7 Jun 2022 17:28:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654622914; bh=hKaaFKKJkTwL/NOcTKoKRquAfxInXdQEATkMxPCLz1A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=euZ1V3lF2vYOho1A7FOeMBiaq5VSfaiLCRZsxr6UpHSySd2o7BGheEiGRC/Ga4Iml 7PqgM+Km1z4YLfcrSYQ02yvS7NbVVcaX2q5Fz5gu7E8YB3CcNLYgzMFimtnED2Vn+F 9VbaCJ3ru9UvvWVZpRqTzz3G50iEpl9OMLjyKGEQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dongliang Mu , Sakari Ailus , Mauro Carvalho Chehab , Sasha Levin Subject: [PATCH 5.10 228/452] media: ov7670: remove ov7670_power_off from ov7670_remove Date: Tue, 7 Jun 2022 19:01:25 +0200 Message-Id: <20220607164915.356419505@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607164908.521895282@linuxfoundation.org> References: <20220607164908.521895282@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,TVD_SUBJ_WIPE_DEBT, T_SCC_BODY_TEXT_LINE 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 From: Dongliang Mu [ Upstream commit 5bf19572e31375368f19edd2dbb2e0789518bb99 ] In ov7670_probe, it always invokes ov7670_power_off() no matter the execution is successful or failed. So we cannot invoke it agiain in ov7670_remove(). Fix this by removing ov7670_power_off from ov7670_remove. Fixes: 030f9f682e66 ("media: ov7670: control clock along with power") Signed-off-by: Dongliang Mu Signed-off-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin --- drivers/media/i2c/ov7670.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/media/i2c/ov7670.c b/drivers/media/i2c/ov7670.c index b42b289faaef..154776d0069e 100644 --- a/drivers/media/i2c/ov7670.c +++ b/drivers/media/i2c/ov7670.c @@ -2000,7 +2000,6 @@ static int ov7670_remove(struct i2c_client *client) v4l2_async_unregister_subdev(sd); v4l2_ctrl_handler_free(&info->hdl); media_entity_cleanup(&info->sd.entity); - ov7670_power_off(sd); return 0; } -- 2.35.1