Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751942AbbKJCMu (ORCPT ); Mon, 9 Nov 2015 21:12:50 -0500 Received: from relmlor4.renesas.com ([210.160.252.174]:29637 "EHLO relmlie3.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751066AbbKJCMs (ORCPT ); Mon, 9 Nov 2015 21:12:48 -0500 X-IronPort-AV: E=Sophos;i="5.20,268,1444662000"; d="scan'";a="199423215" Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=kuninori.morimoto.gx@renesas.com; Message-ID: <87d1vili9c.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 2/2] thermal: rcar_thermal: use pm_runtime_put_sync() User-Agent: Wanderlust/2.15.9 Emacs/24.3 Mule/6.0 To: Zhang Rui , Eduardo Valentin CC: Linux-SH , Linux-Kernel , , , In-Reply-To: <87fv0elibh.wl%kuninori.morimoto.gx@renesas.com> References: <87h9kulkfg.wl%kuninori.morimoto.gx@renesas.com> <87fv0elibh.wl%kuninori.morimoto.gx@renesas.com> MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset="US-ASCII" Date: Tue, 10 Nov 2015 02:12:34 +0000 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: TY1PR01CA0011.jpnprd01.prod.outlook.com (25.161.131.149) To HKXPR06MB1014.apcprd06.prod.outlook.com (25.161.178.156) X-Microsoft-Exchange-Diagnostics: 1;HKXPR06MB1014;2:prSMgxPp+48agkDoZShFGuR2PyflFmTLjYQqa6rkMVafnJ0fl7ZvpRKzsHcHGSDlG3PchhjBzk+IlzYYwwv/eGm/3/yWRAwL4WXFQZNpBCXAihoi23xz78PdFC0PZJmGrmFjHcQPMzNmTfIF0GS+BpNkySMSH6J5huaB4oXwggA=;3:UNtCZiIccRATmgXBovkRyAzW2Wp38DBbT8oG5Sy8ogd4Xmu459m8wwWG5pzDH96jwnsrKC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u7pbS538X5jmnt94vjdDjanyksS2kbOVR5kJu7TUBAk9KQYPT+ny/MFX1pKJMiOUqrON9esGeuVp4YX61ij6c85FNYcuGBFzivlGe/eKB2/cPPfwLwz0TbuZkkEIujkfUBKZZfz2OkIBqGliuEDtV+A5DnzfNlTqqdwwt2UXM5sVMIQhjLimIbyLbaxl+PK76MQTqAasmes9+FdwtjwSqwbIL3IhoQzQvUAzDaZqiq2Aut08kG5v3yIlmxIHgKKVad88NGoLRpNsobxzEabnPrV X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(85106069007906); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(2401047)(520078)(8121501046)(5005006)(10201501046)(3002001);SRVR:HKXPR06MB1014;BCL:0;PCL:0;RULEID:;SRVR:HKXPR06MB1014; X-Forefront-PRVS: 07562C22DA X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(6009001)(189002)(199003)(40100003)(83506001)(5001770100001)(5001960100002)(87976001)(5004730100002)(50466002)(47776003)(5008740100001)(66066001)(5007970100001)(92566002)(69596002)(122386002)(229853001)(81156007)(19580405001)(33646002)(97736004)(86362001)(23726002)(19580395003)(101416001)(36756003)(106356001)(105586002)(4001350100001)(2950100001)(50986999)(189998001)(76176999)(42186005)(54356999)(46406003)(53416004)(77096005);DIR:OUT;SFP:1102;SCL:1;SRVR:HKXPR06MB1014;H:morimoto-PC.renesas.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;HKXPR06MB1014;23:NFBzFGXffZgIzYtlsUCCtpFcFDV8twedpG4EHq740?= =?us-ascii?Q?GEPPLT9MTSuW+cWcgAamuTQMJiZpSEX7Pqx0XXDuDOabtE3IC3sd3Hw1ITaz?= =?us-ascii?Q?QoyOz8Sf/JBA18sZQhv5zNvVcJ30t+SPtvL2//J34AhcJjUDeO96MiCrbih1?= =?us-ascii?Q?aeY+a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H/uLk1/UQjb?= =?us-ascii?Q?Rg0xz4rljdJ8mEa2hL9rh4aAgQz?= X-Microsoft-Exchange-Diagnostics: 1;HKXPR06MB1014;5:cj5svWIsQw+Dk/kl5WNTjeFl8d0wawUpd1BmNGfS2bfzZOASBlv3Jeik4XyiNIlmI8hnuu2Bl0bwyuWADom+7I6/K+Cqi+WMikfcq0WhTmtdfaZxD4zSZ3jqbPPJ6V5iK0lWnB/0ZxulJqDbp+MHow==;24:aCeZLQLNAnEadqVgYKr5U37SuWX+59vxwlSM6N8P2xIuQURM8nq3WVJLarVdYQFwAKy1QyjBF8SqvgkmM/AY3qT5fya2xrRnJFvM2qmhYoU=;20:WziuuRVQG/fPkhm0dEcDKTtQb1vtVWDaSzz1jrDEy/i6DXzR5H29O6ufhEDjwYgOmOdHeKFBAprDyBHF1Y/xDdIt//4zbhBjL6nllgJJ/x+i7C5Hl//lSDOgvLxPHTBlh6VsJvJWWs7voIIGVmhJjOyQvKiSL9j8m4VA3Lq2RUo= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Nov 2015 02:12:34.6092 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: HKXPR06MB1014 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1049 Lines: 32 From: Kuninori Morimoto It is using pm_runtime_get_sync() on probe(). Let's use pm_runtime_put_sync() instead of pm_runtime_put(). Otherwise thermal sensor doesn't work after unbind/re-bind Signed-off-by: Kuninori Morimoto --- drivers/thermal/rcar_thermal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/thermal/rcar_thermal.c b/drivers/thermal/rcar_thermal.c index 13d01ed..f7cf2d7 100644 --- a/drivers/thermal/rcar_thermal.c +++ b/drivers/thermal/rcar_thermal.c @@ -373,7 +373,7 @@ static int rcar_thermal_remove(struct platform_device *pdev) thermal_zone_device_unregister(priv->zone); } - pm_runtime_put(dev); + pm_runtime_put_sync(dev); pm_runtime_disable(dev); return 0; -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/