From patchwork Mon May 6 04:30:09 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jingoo Han X-Patchwork-Id: 2522261 X-Patchwork-Delegate: rui.zhang@intel.com Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 237A1DF230 for ; Mon, 6 May 2013 04:30:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752719Ab3EFEaM (ORCPT ); Mon, 6 May 2013 00:30:12 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:46014 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752461Ab3EFEaL (ORCPT ); Mon, 6 May 2013 00:30:11 -0400 Received: from epcpsbgr1.samsung.com (u141.gpu120.samsung.co.kr [203.254.230.141]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MMD000KY0I3HFH0@mailout4.samsung.com> for linux-pm@vger.kernel.org; Mon, 06 May 2013 13:30:10 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [203.254.230.48]) by epcpsbgr1.samsung.com (EPCPMTA) with SMTP id CE.BC.31024.2D137815; Mon, 06 May 2013 13:30:10 +0900 (KST) X-AuditID: cbfee68d-b7f016d000007930-6a-518731d2e7c0 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id A0.AC.01422.2D137815; Mon, 06 May 2013 13:30:10 +0900 (KST) Received: from DOJG1HAN03 ([12.23.120.99]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MMD00AXR0I9BX40@mmp1.samsung.com>; Mon, 06 May 2013 13:30:10 +0900 (KST) From: Jingoo Han To: 'Zhang Rui' Cc: 'Eduardo Valentin' , linux-pm@vger.kernel.org, Jingoo Han , 'Nobuhiro Iwamatsu' , 'Ezequiel Garcia' Subject: [PATCH 4/6] thermal: kirkwood: remove unnecessary platform_set_drvdata() Date: Mon, 06 May 2013 13:30:09 +0900 Message-id: <004101ce4a12$64bcbac0$2e363040$@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: Ac5KEjAIz2+dOSCxTZCGBMB8yd7fMA== Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrNIsWRmVeSWpSXmKPExsVy+t8zA91Lhu2BBivuCVis2f+TyeL0qQWs Fm+biy0uL7zEavG59wijxZOHfWwObB5PNl1k9Fi85yWTx4HJ51g9+rasYvQ4fmM7k8fnTXIB bFFcNimpOZllqUX6dglcGW9ur2Iq+MpWcfjcacYGxresXYycHBICJhJPZ79lg7DFJC7cWw9k c3EICSxjlNg38yM7TFHP2hcsEIlFjBInOxsZIZxfjBLT3jSDVbEJqEl8+XIYzBYRUJW4dbqH CaSIWeAKo8SNi8eYQBLCAsES25Z1gO1jASpat+c4M4jNK2Ap8WPbfHYIW1Dix+R7LCA2s4CW xPqdx5kgbHmJzWveMkOcpCCx4+xrRohlehKrD+9jh6gRkdj34h3YdRIC59gl7lxcyw6xTEDi 2+RDQEM5gBKyEpsOQM2RlDi44gbLBEaxWUhWz0KyehaS1bOQrFjAyLKKUTS1ILmgOCm9yFCv ODG3uDQvXS85P3cTIyQie3cw3j5gfYgxGWj9RGYp0eR8YETnlcQbGpsZWZiamBobmVuakSas JM6r1mIdKCSQnliSmp2aWpBaFF9UmpNafIiRiYNTqoExtvborhsP+ze7WjyJO1hxW8Y7fKLE EqGO0lX+me1OXKfWt96sjHiqkFh4INR4bYPUnQJh50UhwUdvurvfaO7Ym/1Y+lvs+6TTDExy 1ldPzHDepKM6u6Mi/+cKN7/AIK6FXw6+O25+8sADk5I+qQbFjTcnRk3j/Hbj7P4NVQs/zbvZ n6zG666uxFKckWioxVxUnAgATCylP94CAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrBKsWRmVeSWpSXmKPExsVy+t9jAd1Lhu2BBidP8lis2f+TyeL0qQWs Fm+biy0uL7zEavG59wijxZOHfWwObB5PNl1k9Fi85yWTx4HJ51g9+rasYvQ4fmM7k8fnTXIB bFENjDYZqYkpqUUKqXnJ+SmZeem2St7B8c7xpmYGhrqGlhbmSgp5ibmptkouPgG6bpk5QGco KZQl5pQChQISi4uV9O0wTQgNcdO1gGmM0PUNCYLrMTJAAwnrGDPe3F7FVPCVreLwudOMDYxv WbsYOTkkBEwketa+YIGwxSQu3FvP1sXIxSEksIhR4mRnIyOE84tRYtqbZnaQKjYBNYkvXw6D 2SICqhK3TvcwgRQxC1xhlLhx8RgTSEJYIFhi27IONhCbBaho3Z7jzCA2r4ClxI9t89khbEGJ H5Pvga1mFtCSWL/zOBOELS+xec1bZoiTFCR2nH3NCLFMT2L14X3sEDUiEvtevGOcwCgwC8mo WUhGzUIyahaSlgWMLKsYRVMLkguKk9JzjfSKE3OLS/PS9ZLzczcxguP9mfQOxlUNFocYBTgY lXh4C560BQqxJpYVV+YeYpTgYFYS4fXZCxTiTUmsrEotyo8vKs1JLT7EmAz06URmKdHkfGAq yiuJNzQ2MTOyNDKzMDIxNydNWEmc92CrdaCQQHpiSWp2ampBahHMFiYOTqkGRk0RLZFTiZ3c iSlui+Kkd8bcT1M3PXvuQCevtNempMVm70WENQsT1/o03828xBNgbayiNLHloIgaY/jZgqzD SfmredNOb81YlbfM5+DFHbPkjn3ebln5WML7q9HeXQkFakFJLzZ0nVt2cOOf74EH9JIuHo8r WxA+nedbi4pGrfnROyf/LM9doMRSnJFoqMVcVJwIAA+TCEk7AwAA DLP-Filter: Pass X-MTR: 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 --- drivers/thermal/kirkwood_thermal.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/drivers/thermal/kirkwood_thermal.c b/drivers/thermal/kirkwood_thermal.c index dfeceaf..b57a45d 100644 --- a/drivers/thermal/kirkwood_thermal.c +++ b/drivers/thermal/kirkwood_thermal.c @@ -108,7 +108,6 @@ static int kirkwood_thermal_exit(struct platform_device *pdev) platform_get_drvdata(pdev); thermal_zone_device_unregister(kirkwood_thermal); - platform_set_drvdata(pdev, NULL); return 0; }