Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp2904988pxb; Mon, 18 Apr 2022 10:42:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzQEcxau8wsV+0D0DU/OnDse7GraHSYtr60J8RJA/cm0SDXxRr2avBXK8TWUeCXvUSC5vFO X-Received: by 2002:a05:6a00:cc4:b0:505:6998:69b8 with SMTP id b4-20020a056a000cc400b00505699869b8mr13408903pfv.19.1650303759118; Mon, 18 Apr 2022 10:42:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650303759; cv=none; d=google.com; s=arc-20160816; b=fMBL5nwcg0KnjOr1PWUPtQ+FZs93fTPAJGWnHWqheDwX1yJ3Ec3vMQtnxZmlmZ04wv bqb3FTCu0HZ+ARdce1tbNOhnWF/hX0HgPQcpo/m0hHPvpE/4PhE5CvmY9cGCQHiq9kI3 DX1crZUVyV+XKmriYKtEPSV5lDXwgLyc7nwT5dvX/6MG2M3KLyBbo9cI1CBPtZwnZgfE Jw+aJ3gOCkOdHu54qWTBx1ANUqmrRc8jyD4tzP/1Eco3fXTHAFT1FwJRmVLYhv0X3SgU HItSl3p4bqfNaP/3BPqLicA0LAQgt8sqvmKY9cQaZQrLpeQU0sI5cDc6GbgeEzYZoqB/ jdtA== 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=GjGpQX54iG6UJcfI6HDb9tDIRJcy1sQN9nZs4hl6I14=; b=u+1z4uxHjv2wuihMK5wq9AayAKbg/xAcXbw+b52haRL38xkgfEEw7oMkecFIUfFdU6 jLfTXTbMYd/zWDT8BMdxyKZBVnhvPNXQYoCHbjx6ZmIQbRqhEOCZvpPMP/DbJgECtCjC s48xYVHZJF+AeHx3pEItUIMeSgP8ZxssqaNFH+KJJwJgjLUuPIdvzbRGzI2WbxLAuyHG ns/rcgx2fpovuTH0h5Wvtp/RGxROg5j/aFAVZifent7jROaBGaxTOUi9r183cL88fyDB we5mFT+UMIdVVndlI00lGDb1E+TRwDm10up+kv/zj+7EZMWNE3cAxV4lYUz3FaZJ1Mtr Ngcw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linuxfoundation.org header.s=korg header.b=PIDphFe7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c20-20020a17090aa61400b001d2adec640fsi1922165pjq.164.2022.04.18.10.42.18; Mon, 18 Apr 2022 10:42:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=fail header.i=@linuxfoundation.org header.s=korg header.b=PIDphFe7; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242343AbiDRNf6 (ORCPT + 99 others); Mon, 18 Apr 2022 09:35:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243221AbiDRNJ5 (ORCPT ); Mon, 18 Apr 2022 09:09:57 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2839E37A0A; Mon, 18 Apr 2022 05:49:25 -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 dfw.source.kernel.org (Postfix) with ESMTPS id D6BA66124D; Mon, 18 Apr 2022 12:49:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D401FC385A1; Mon, 18 Apr 2022 12:49:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1650286163; bh=5Z78gfGHfHm7csyWYfRHlrzotpJOLnNIrOIF5IitPrY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PIDphFe7g2FBmLJ7HzBZrxzYsVEYrL1+TFB95cJXbvXWbD44JaZvT7iZyGXy1m7QX T7ZqghQ2JFW+ZIijOoJFqkZMCRH1IQcC+FbxCxWD2SHvjCw4J2/JdyNzSeNX0BvMRJ ZXvoQKP0dDyjnul7Al/x4/fcZZg0rHy7P/8mEEeY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, "Lad, Prabhakar" , Johan Hovold , Hans Verkuil , Mauro Carvalho Chehab , Lad@vger.kernel.org Subject: [PATCH 4.14 049/284] media: davinci: vpif: fix unbalanced runtime PM get Date: Mon, 18 Apr 2022 14:10:30 +0200 Message-Id: <20220418121212.091259923@linuxfoundation.org> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20220418121210.689577360@linuxfoundation.org> References: <20220418121210.689577360@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=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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: Johan Hovold commit 4a321de239213300a714fa0353a5f1272d381a44 upstream. Make sure to balance the runtime PM usage counter on driver unbind. Fixes: 407ccc65bfd2 ("[media] davinci: vpif: add pm_runtime support") Cc: stable@vger.kernel.org # 3.9 Cc: Lad, Prabhakar Signed-off-by: Johan Hovold Reviewed-by: Lad Prabhakar Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Greg Kroah-Hartman --- drivers/media/platform/davinci/vpif.c | 1 + 1 file changed, 1 insertion(+) --- a/drivers/media/platform/davinci/vpif.c +++ b/drivers/media/platform/davinci/vpif.c @@ -495,6 +495,7 @@ static int vpif_probe(struct platform_de static int vpif_remove(struct platform_device *pdev) { + pm_runtime_put(&pdev->dev); pm_runtime_disable(&pdev->dev); return 0; }