From patchwork Mon May 6 04:34:47 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 2522291 X-Patchwork-Delegate: rui.zhang@intel.com Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 9AD5A3FC5A for ; Mon, 6 May 2013 04:34:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750840Ab3EFEeu (ORCPT ); Mon, 6 May 2013 00:34:50 -0400 Received: from mailout1.samsung.com ([203.254.224.24]:34037 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750720Ab3EFEet (ORCPT ); Mon, 6 May 2013 00:34:49 -0400 Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MMD0048D0PHHSL0@mailout1.samsung.com> for linux-pm@vger.kernel.org; Mon, 06 May 2013 13:34:48 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.49]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id FD.4D.19730.7E237815; Mon, 06 May 2013 13:34:47 +0900 (KST) X-AuditID: cbfee68e-b7efa6d000004d12-14-518732e7e20a Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id 3B.CD.01422.7E237815; Mon, 06 May 2013 13:34:47 +0900 (KST) Received: from DOJG1HAN03 ([12.23.120.99]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MMD00E4F0PZ8Y30@mmp2.samsung.com>; Mon, 06 May 2013 13:34:47 +0900 (KST) From: Jingoo Han To: 'Zhang Rui' Cc: 'Eduardo Valentin' , linux-pm@vger.kernel.org, Jingoo Han , 'Vincenzo Frascino' , 'Viresh Kumar' Subject: [PATCH 6/6] thermal: spear: remove unnecessary platform_set_drvdata() Date: Mon, 06 May 2013 13:34:47 +0900 Message-id: <004401ce4a13$0a2e3ec0$1e8abc40$@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-index: Ac5KEvqIRYHHINraTFOcueE8AxQJqQ== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrHIsWRmVeSWpSXmKPExsVy+t8zQ93nRu2BBvvWWFu8PKRpsWb/TyaL ywsvsVp87j3CaPHkYR+bxbETM1gtVl78y+zA7rFz1l12j8V7XjJ59G1Zxejx9MdeZo/jN7Yz eXzeJBfAFsVlk5Kak1mWWqRvl8CVse3ZBMaC4+wVW26cZmpg3MrWxcjJISFgInHnxX0oW0zi wr31QDYXh5DAMkaJ2+efsnQxcoAV/f4RCxGfzijRu6WfHcL5xSgxoe8aK0g3m4CaxJcvh9lB bBEBVYlbp3uYQIqYBU4zSjxqOsAEkhAW8JNY/P0XG8hUFqCiLxOLQcK8ApYSnx6sYIawBSV+ TL7HAmIzC2hJrN95nAnClpfYvOYtM8SlChI7zr5mhNilJzF/yxd2iBoRiX0v3jGC7JUQuMUu 8fT7UbDXWAQEJL5NPgT1jazEpgNQcyQlDq64wTKBUWwWktWzkKyehWT1LCQrFjCyrGIUTS1I LihOSi8y0itOzC0uzUvXS87P3cQIicu+HYw3D1gfYkwGWj+RWUo0OR8Y13kl8YbGZkYWpiam xkbmlmakCSuJ86q1WAcKCaQnlqRmp6YWpBbFF5XmpBYfYmTi4JRqYJSpVuKOfPKxjWHjn49e k+5F9h6vO7DgQrVHSWuUYsVGnnffpoZV/zBb6l+pojHtqvQPFmmzKeonvDyfZ86qm3Pr7dc0 3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TR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org The driver core clears the driver data to NULL after device_release or on probe failure, since commit 0998d0631001288a5974afc0b2a5f568bcdecb4d (device-core: Ensure drvdata = NULL when no driver is bound). Thus, it is not needed to manually clear the device driver data to NULL. Signed-off-by: Jingoo Han Acked-by: Viresh Kumar --- drivers/thermal/spear_thermal.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/drivers/thermal/spear_thermal.c b/drivers/thermal/spear_thermal.c index 3c5ee56..1a14eaa 100644 --- a/drivers/thermal/spear_thermal.c +++ b/drivers/thermal/spear_thermal.c @@ -174,7 +174,6 @@ static int spear_thermal_exit(struct platform_device *pdev) struct spear_thermal_dev *stdev = spear_thermal->devdata; thermal_zone_device_unregister(spear_thermal); - platform_set_drvdata(pdev, NULL); /* Disable SPEAr Thermal Sensor */ actual_mask = readl_relaxed(stdev->thermal_base);