Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp2319321ybc; Sun, 17 Nov 2019 18:52:21 -0800 (PST) X-Google-Smtp-Source: APXvYqxqYF3ogiGlZSy16W8l98P1fxt0zMA/ZzSnItI8QCtKotPBTP7k/3gpIr2JY2aiMaP4aO75 X-Received: by 2002:a17:906:25cb:: with SMTP id n11mr22189381ejb.239.1574045541586; Sun, 17 Nov 2019 18:52:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574045541; cv=none; d=google.com; s=arc-20160816; b=X0Y8PxzrQ/i6kgfJLv6BJ2B9OVkNSU3zMnsa85W6fv7tAm7ZmRdUT2X+OpwAIPdHXW gL1XMzIaPnk0CU7btJjMfttGcbWSwTWZSRcyupc+jafy11O9qNhqQ1R4ZaQ95eHgOjyU NHsvZKKCA0VyGhHbnrcsWlniwCOvpa4nz2H+nnDtC+WkOMnzLsTfhK9bBHaa530/Zsj8 tQ73lq2F2qvRa2TvKZeZuPR/FZQ3eS+JvN+x/vIh1Lci2ExBwWZU8c4727lRXZS47g/g ntRvlExLZZZGORHn2GLJJ/BsY6x8JRp10m+266+e5Ge3ulInLHkpgUgBA2hvvMZOjiy4 C4Og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:content-transfer-encoding:mime-version :message-id:date:subject:cc:from:dkim-signature; bh=LY0ciWZ7+/HWoOPqeE3fOE/KjwyTIZZkb5n5YhlaRJk=; b=mf0XkBiVxO4kYXq68bui3FoksXAi194DtYReVqQjf19LevRXULpf1nJhKCrD5hfYmx UkbD+BqDdCrthPz6VbaAQCeIAdLEPNulqhDZBHwEpOKMl1b50xzAnDOJc/2GbUek1b8C MimikbfWna7DXAxJ7S9Ij0aMad6BjHdfOOsK2zG+qUhoD1fr2Jx+ATg8vniuag3Kw9cZ 3sjrBc7ulpAND5Z2Dt0hSK5uZmapjnhtg9xy6uP2mdLXf8jXDZBYvLUqVXndHogVi7JT 2LALgSAXlcg9PC98hlTzi8phbMdhs6VGFtFpOVQIo4UrlV0yuvu+mVgWmcQbfCGTuGpB T++A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=IFQomFFd; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i12si11007327edr.198.2019.11.17.18.51.57; Sun, 17 Nov 2019 18:52:21 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=IFQomFFd; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726683AbfKRCtA (ORCPT + 99 others); Sun, 17 Nov 2019 21:49:00 -0500 Received: from mail-pg1-f196.google.com ([209.85.215.196]:37136 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726168AbfKRCs7 (ORCPT ); Sun, 17 Nov 2019 21:48:59 -0500 Received: by mail-pg1-f196.google.com with SMTP id b10so355854pgd.4; Sun, 17 Nov 2019 18:48:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=LY0ciWZ7+/HWoOPqeE3fOE/KjwyTIZZkb5n5YhlaRJk=; b=IFQomFFd376wV893dfuRQSFo6YfIrqUTyUNBbHCHuOkQ5xaMAc3en/4gtkXJqZDO8S dxsWJGGbL6cOvN4qT5XUIsu6Drl2ucEq4jmrSiBoCNFYS8GPH4j8mWAVE6SVAHJSGgWC 2mU/Zyu46UvlQ1Z5LOgR4QctEr/QQIKPR2TZQScR91mp+5YxeTO3mRH4vWzgqDumq4D4 Rth1GqmAZdEDIacmM0WoKo0rjmrWeO/KNNQBejuqvgdH/FB9nswQ8T8jgnyZVuPKX7cl +PH5m4rIJ9/arOzsfPktqjk3yll3gbTvjXjGyMrntNJfnogtxUL8hNTsKAAuRXk/426f lAhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=LY0ciWZ7+/HWoOPqeE3fOE/KjwyTIZZkb5n5YhlaRJk=; b=Y/WCHyZWUK/F997BKr8NZsObW/yudQHwef+372QC8nxPN6j88V0bdzdBRCMVChDBNK NguxLoHecrEVLKmDeY8FDW1PszZoTEws0bxxttQSfMWIRSFi4G/VQ5Axul4EPR8Q2V72 ZdCGpBOboE/eSBtb34Sa8U9DCg7lzA2tKI32R4fml9DLjCbaZK6SQ+DEJzYy0nRwYlv1 M+XqJyQhRwXew51WZI2FLRFnPRsCKmdgSATGk+6O3k6/JuWAfr/jenN33TArg9Bp37WD Ae+8e5KQQTA1mxh0bJobtn5wJbPkh9gbUbGVWa5dQwnR8p9yMzKvqyCeawc4h/rsLlws OxRQ== X-Gm-Message-State: APjAAAVKXwDxdvAydStYZqnPv0WbPnJ5X5W0N1dYesZoVDFjNBXidwp5 3c5J+VieyxX7XJnHdFtiU04= X-Received: by 2002:a63:588:: with SMTP id 130mr30852672pgf.148.1574045339235; Sun, 17 Nov 2019 18:48:59 -0800 (PST) Received: from suzukaze.ipads-lab.se.sjtu.edu.cn ([202.120.40.82]) by smtp.gmail.com with ESMTPSA id h5sm17286589pjc.9.2019.11.17.18.48.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Nov 2019 18:48:58 -0800 (PST) From: Chuhong Yuan Cc: Mark Brown , linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, Chuhong Yuan Subject: [PATCH] spi: st-ssc4: add missed pm_runtime_disable Date: Mon, 18 Nov 2019 10:48:48 +0800 Message-Id: <20191118024848.21645-1-hslester96@gmail.com> X-Mailer: git-send-email 2.24.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The driver forgets to call pm_runtime_disable in probe failure and remove. Add the missed calls to fix it. Signed-off-by: Chuhong Yuan --- drivers/spi/spi-st-ssc4.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/spi/spi-st-ssc4.c b/drivers/spi/spi-st-ssc4.c index 0c24c494f386..77d26d64541a 100644 --- a/drivers/spi/spi-st-ssc4.c +++ b/drivers/spi/spi-st-ssc4.c @@ -381,6 +381,7 @@ static int spi_st_probe(struct platform_device *pdev) return 0; clk_disable: + pm_runtime_disable(&pdev->dev); clk_disable_unprepare(spi_st->clk); put_master: spi_master_put(master); @@ -392,6 +393,8 @@ static int spi_st_remove(struct platform_device *pdev) struct spi_master *master = platform_get_drvdata(pdev); struct spi_st *spi_st = spi_master_get_devdata(master); + pm_runtime_disable(&pdev->dev); + clk_disable_unprepare(spi_st->clk); pinctrl_pm_select_sleep_state(&pdev->dev); -- 2.24.0