Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp829079pxb; Fri, 22 Apr 2022 12:04:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyNdllGkW7dOcgMmkuU0Wh1hepJL43CaFw/2f9CVWisRxDOc+3DIgIASgdpIj/DDVyZwQcT X-Received: by 2002:a17:90a:d082:b0:1ca:be58:c692 with SMTP id k2-20020a17090ad08200b001cabe58c692mr17951692pju.238.1650654298467; Fri, 22 Apr 2022 12:04:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650654298; cv=none; d=google.com; s=arc-20160816; b=kNsRNletkcq3ZHwoPhTabLjPAtQ6MEEkvdQYMG9oJBHOT28aDlcFa+kzs4yTLFeHKr MWTpFCBopqL+UN+UXUqTLSgXDncIdf+y+1TrZpw/9HE9uTpi+OPnLQ1JKk77C/vpkJqf Dn3JUNFKwXmW2wPx/dxJvvgVV5hQRh7CGsYC4judI4Xd9BSLc+LrUPxkpBIZvFwabhBR snwy/NOsHojdqClAlZKpNuOUrkAnBAgxuIAsZQz7Vny1rfPJH12i71JVpq64GHVHN13H +euYar6wVcXxpzUK+q/Qyjxs4CQvn4rwg+O04xJ9tejw6WzdmMgwdm48ygkHYnNUAKbo M5QA== 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 :message-id:date:subject:cc:to:from; bh=kwKYPQa6+m0/KPdPecopD3pt2fY8gu82kTUUVtbh4is=; b=C7KKyOoovDu8UgyfMEIk0XM26jBUBwE/oBEfnEREpmyRnac4OOHoWTwEuSYPqO8I4R Cmc78P+6JESTXC7JMrAs5erFrq7x8tmwZh0TxEsmLwNlSikJ+Q7X1OweY6sFUzDH4WPx qrkTmJmUNPbzCeH4nTjj5zRC/67bMCyMtBIH4Bw+1gBiSBU1S3s9Qg+yebeyA1ntXiSf +UZ4Y2U6+NfS0b4NB1NfdxfOidVU81t6t3LCdOEoPQ6+wCjKv4hs3NREZv5byo8Oq0le FbNpWVt3bSAcfiHe6jS1Ax6cmme2rmC2Uo8G7ZQo/8vYgfbuNkatIWoDI7LzKp/Zp3OM vVhg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id z3-20020a63b903000000b003aa6195a9f1si9548519pge.298.2022.04.22.12.04.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 12:04:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B9706105226; Fri, 22 Apr 2022 11:25:01 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240925AbiDVI6Y (ORCPT + 99 others); Fri, 22 Apr 2022 04:58:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233715AbiDVI6X (ORCPT ); Fri, 22 Apr 2022 04:58:23 -0400 Received: from hust.edu.cn (mail.hust.edu.cn [202.114.0.240]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 081371F617; Fri, 22 Apr 2022 01:55:28 -0700 (PDT) Received: from localhost.localdomain ([172.16.0.254]) (user=dzm91@hust.edu.cn mech=LOGIN bits=0) by mx1.hust.edu.cn with ESMTP id 23M8s9B5024748-23M8s9B8024748 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Fri, 22 Apr 2022 16:54:13 +0800 From: Dongliang Mu To: Mauro Carvalho Chehab , Tomi Valkeinen , Dongliang Mu , Hans Verkuil , Sakari Ailus , Lubomir Rintel Cc: Laurent Pinchart , Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] media: ov7670: remove ov7670_power_off from ov7670_remove Date: Fri, 22 Apr 2022 16:54:05 +0800 Message-Id: <20220422085408.634616-1-dzm91@hust.edu.cn> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-FEAS-AUTH-USER: dzm91@hust.edu.cn X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,TVD_SUBJ_WIPE_DEBT 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 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 --- 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.25.1