Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp5612107ybl; Tue, 10 Dec 2019 08:43:13 -0800 (PST) X-Google-Smtp-Source: APXvYqzgdmdBAi81nB1YM0KC7Ja/g2bqfoXA9kA25tMow5AERWGxUBsoOI9xcc1uirmULn3yNuMX X-Received: by 2002:aca:aad8:: with SMTP id t207mr4504411oie.138.1575996193825; Tue, 10 Dec 2019 08:43:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575996193; cv=none; d=google.com; s=arc-20160816; b=J3aqmF4Le8obgPub32xK4c+0unxWdwBUt1YeYYKK34S2GueukfYgReZxXAlYPQCkm2 OHmpnLO7ci9VF7CBDZzcrYRVQd3zgLF35BAvoKw60mTNShK4jF5Wu1v5w92gun0ckdoU SKdpCXK0pT/Eq2koLXIBtH40a6OHejonBbZqYxrB2mz18bhJdnNB0itP9cxlwUl3RC+k LM+BlthIP3U0tIyBUd2rWwmaqDEcd7akm1EWNcP3yd/C6xsly7vZxOItsy4RozzOPGz/ wVa5vU2bWXGRRR+E+LEhH6auL6xOEEf11gxrEC+VPRLIlhTJf0VEHRM3Ak0HQum3w6Bk djpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=KAZmhDLq44fHUuJGfTTESQPx/1QL+Ta6yKiRVIXpUF0=; b=LbhSMojtuykwjCdzty/nvNkfQOMiGKhmIvWSVzCNIPjWTHB9G3zpRlPMFkYxlatCbz 0x55mHVI2X+vgpd4tsVasWxtSd0RD+we6yID+1aW21zAEuG/Xp7u8IVvC2Zr6FVcBCEX OIyeL6d1SzsiyOp4BN7ri+Gwp2h7hZWsOJRQ8pOq4T4AJinVLHVu4Rbp0JWAC7AwmHHG fneaGS9jEd7gN660apdj8DLlGVTYfGgT628cVhdLnTGQkVCoujwMxMxlbrg2nj3Sy8fJ 0NGegSaUfmL5h/+1HNNUGrjntfTYkbxhCW5v42kgcMDSXDE6hBIa9t8bKZ7bqyihwV/7 xfrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Tr0SyHBM; 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=pass (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 j16si2277473otr.69.2019.12.10.08.43.00; Tue, 10 Dec 2019 08:43:13 -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=pass header.i=@gmail.com header.s=20161025 header.b=Tr0SyHBM; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727809AbfLJQmV (ORCPT + 99 others); Tue, 10 Dec 2019 11:42:21 -0500 Received: from mail-pl1-f193.google.com ([209.85.214.193]:40245 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727793AbfLJQmU (ORCPT ); Tue, 10 Dec 2019 11:42:20 -0500 Received: by mail-pl1-f193.google.com with SMTP id g6so89964plp.7; Tue, 10 Dec 2019 08:42:20 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=KAZmhDLq44fHUuJGfTTESQPx/1QL+Ta6yKiRVIXpUF0=; b=Tr0SyHBMO2y3mbJLXSrmGeiJsEDUyMma4adOG4cGUtAzqIO7+9T5sEC3/ov3VSkQxQ OsaQxqAoD/WIEqsupov1DkcXzKWG6w8VkEdnfsbOmlI1rU4TgLkqCQzAHlybWsBEazsL S6OhwyJjS8c3Qq04r5HQY92yv+iUAO9nKrMAfXnlG0sUj6z5a2qSIJDVrfYGqn3rhcbV PAGYgUpgCfzmQ/5yUBDAqvXjnTzckmXZBSfX0hvzziA8HF+mNPfxddPy2jDeUpatGUlS UYfNwz8KBCGv7JE54c9d+Pt9m6KG1SShDYbJJOcUUJ+/5mRSP9giNkbOsPPXunBASOdu sZzQ== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=KAZmhDLq44fHUuJGfTTESQPx/1QL+Ta6yKiRVIXpUF0=; b=AZpDK8fIEdsHUeO1DIW9zMlRuKz49mXtW0c1ZjIEheF6glWVd9Lpf7xKBctyGDdx8e X+NmM0bbko30uwlXpRKYXqbAbRM1slQS3KPPbS3hI/wZhW0EZ6JT0Hgg7fye/WxYkL8e t5jlyH5LqtABr+D1zekCTT3ZHhg7v+evrWtaZryZ7a1jZvmCyUiR4Wavx3gDFkeQpHWE M0TpJAHZvXO4NTRZzQxhnwjc+eYLFVSGqdQn0VrYyYA/qHUyBnBrZj6DLEMx1G5aoyCs hzHjPUuyPmYAdgNvr3pI7izdXsYWJrLSci9iETynOIA+KbVy4beAvSfAQUv4sbSHAHZO Le9g== X-Gm-Message-State: APjAAAWBupaLSpRfJyqQP70JEWRwzHGkW2P7xJYzsK6hw6xF+l3C3phY rJFb2xL4Lr4shcyYB2Ud4z6F/9ntLjM= X-Received: by 2002:a17:90a:e291:: with SMTP id d17mr6623044pjz.116.1575996139886; Tue, 10 Dec 2019 08:42:19 -0800 (PST) Received: from localhost.localdomain (c-67-165-113-11.hsd1.wa.comcast.net. [67.165.113.11]) by smtp.gmail.com with ESMTPSA id j38sm4034634pgj.27.2019.12.10.08.42.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Dec 2019 08:42:18 -0800 (PST) From: Andrey Smirnov To: Daniel Lezcano Cc: Andrey Smirnov , Lucas Stach , Chris Healy , Eduardo Valentin , Angus Ainslie , linux-imx@nxp.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v8 07/12] thermal: qoriq: Drop unnecessary drvdata cleanup Date: Tue, 10 Dec 2019 08:41:48 -0800 Message-Id: <20191210164153.10463-8-andrew.smirnov@gmail.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191210164153.10463-1-andrew.smirnov@gmail.com> References: <20191210164153.10463-1-andrew.smirnov@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Driver data of underlying struct device will be set to NULL by Linux's driver infrastructure. Clearing it here is unnecessary. Signed-off-by: Andrey Smirnov Reviewed-by: Daniel Lezcano Tested-by: Lucas Stach Cc: Chris Healy Cc: Lucas Stach Cc: Eduardo Valentin Cc: Daniel Lezcano Cc: Angus Ainslie (Purism) Cc: linux-imx@nxp.com Cc: linux-pm@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- drivers/thermal/qoriq_thermal.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/thermal/qoriq_thermal.c b/drivers/thermal/qoriq_thermal.c index de8c9cd115aa..11749c673b3b 100644 --- a/drivers/thermal/qoriq_thermal.c +++ b/drivers/thermal/qoriq_thermal.c @@ -327,8 +327,6 @@ static int qoriq_tmu_remove(struct platform_device *pdev) clk_disable_unprepare(data->clk); - platform_set_drvdata(pdev, NULL); - return 0; } -- 2.21.0