Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2191152iof; Tue, 7 Jun 2022 22:42:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzmXApVQQG0hZssAq1X0QZ0mxZEyMUo9/jQSp4Yz7/s7QhtFbUyrjeGm5fA859QzEp5vLHq X-Received: by 2002:a17:902:f542:b0:165:103c:9913 with SMTP id h2-20020a170902f54200b00165103c9913mr32207834plf.77.1654666942364; Tue, 07 Jun 2022 22:42:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654666942; cv=none; d=google.com; s=arc-20160816; b=aO0BAXPHge+EfdhEkAsbAUs6X3+9pPeQyfaO+qC8zUiEgjz1oimYExeT9amHnn1mGC ZXY+1YSRaTCNc/IPPmZTtWWoN5rre8LZ8MbZML7Skzov73BfzhOP05kBWrElgiH+hc4M 8LbJJLAKV/5TEWQEVbNitO3n3hIH4XnHll5TFWjA3TbvTwVsubMAjkhfGniNPm0z2spn Mca81VHDduXub7LJDf/QcKkduuUT83sA6M4hl6FlDhGUVMHU5eo8T7DSHxxK2pERxUx8 cCGYRJUGywf5EK10eRVN6P+UITMntAao1ac3PI7PnIl8VeVenjlDxaxsd/EFw0wAKVhw BCJg== 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=jrUsFkZ3sSaWi9ImZL/iX68vMiqGQfoUV3H4Z+sTmtU=; b=JhybrStKixxPu5Mry/Y/WEU3pa6LSbtkv4K0IR91EvC0lUkQSdX700nrv+SJv16FTl JzpXW+V5TxM30ALczhpSL/o0Rkhm4T3YaMTNTzbLdbbgdYOnEot4Q/k2AyMwPMDVVCBr oPHHBzSlHQOwvXmi/bTcUJt4SA//YfCn7JFisfyICV3dig5hMiR+ooAgzQjSUsR3GeS7 l4asAeQLIx+8KAP+/VUaLH9oYh66FiuoxEI95D5WwvYbf3JxiMzWiwlGXAhlrDSkVa/O ieRSTaJ3SKfkIwLXY1ouCYzgYLrJ+gasp4RkqdiDbED5sw+YjtLKxJH3Tvb+DumJUbdi YYQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=ENb4RzGB; 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 l3-20020a17090b078300b001e4d7db3de0si25401398pjz.51.2022.06.07.22.42.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 22:42:22 -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=ENb4RzGB; 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 76AAC3C7E73; Tue, 7 Jun 2022 22:12:05 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378250AbiFHAYN (ORCPT + 99 others); Tue, 7 Jun 2022 20:24:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59862 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1381531AbiFGVoQ (ORCPT ); Tue, 7 Jun 2022 17:44:16 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A01712342B2; Tue, 7 Jun 2022 12:07:19 -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 ams.source.kernel.org (Postfix) with ESMTPS id 94236B823B0; Tue, 7 Jun 2022 19:07:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EF61CC34115; Tue, 7 Jun 2022 19:07:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1654628830; bh=z9mF0vJTOcJM8P1H/x/lKWNpzNoK2T2OoNZu9lJkCpw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ENb4RzGBtmtee3HHqTmPfCilphWLllFTqpQrf4KF2IHOqL12/iHDSqBCkPZJVLHPV +H+/sAbT0Uadx80BS5NMBy2xqz4+i8TwBgqiGy5uEgAwwfZph9Dtv11qznbHBk+hjI 2SV5LDjgCGwRhdtsoHFgblzO9lmGFJyS+4Bw1fYo= 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.18 472/879] media: ov7670: remove ov7670_power_off from ov7670_remove Date: Tue, 7 Jun 2022 18:59:50 +0200 Message-Id: <20220607165016.580398159@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220607165002.659942637@linuxfoundation.org> References: <20220607165002.659942637@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 196746423116..1be2c0e5bdc1 100644 --- a/drivers/media/i2c/ov7670.c +++ b/drivers/media/i2c/ov7670.c @@ -2017,7 +2017,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