From patchwork Fri May 3 09:57:11 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2516681 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 66E79DF2E5 for ; Fri, 3 May 2013 10:10:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1763035Ab3ECKKT (ORCPT ); Fri, 3 May 2013 06:10:19 -0400 Received: from mail-pd0-f178.google.com ([209.85.192.178]:46863 "EHLO mail-pd0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1763031Ab3ECKKT (ORCPT ); Fri, 3 May 2013 06:10:19 -0400 Received: by mail-pd0-f178.google.com with SMTP id w11so831488pde.23 for ; Fri, 03 May 2013 03:10:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:x-gm-message-state; bh=15I+4s69Fv42sCcP7JM3MNm92kVA2vpYDpJLDxm0cZo=; b=aqc97z7oOT2xGZJEyflqhyPhkzraaEo4xsCgOIqlPCIWut3CbIYUtv2WhQE5DmB5ff gTU2LRmURyVg6Cb7s+3NbA8JH2kIX6YzdBYjaVKbbN5UDdhQvArLDz00KePES+jv1WuA Q9gVq8pB2OsqAE1Nrk6D2ho503Pxk+oqrHMef3Ttdx8jZqCNDgQLboUn/Dhw9OZ6qzm0 K9lblnyeidYKGmRiHZn/PPU9iTopH8w24LTTMNoMVPDiVH7M+lxP2i4u8emCiMQTwYcs KfgGxBvyy3wpEp4iMZOonyTw6Exh70patVfwWJu3Ompvel3Rv/B88ZGSkxnPbpPXa170 BzrQ== X-Received: by 10.66.148.201 with SMTP id tu9mr13830412pab.56.1367575818541; Fri, 03 May 2013 03:10:18 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id ya4sm11099643pbb.24.2013.05.03.03.10.15 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 03 May 2013 03:10:17 -0700 (PDT) From: Sachin Kamat To: linux-pm@vger.kernel.org Cc: eduardo.valentin@ti.com, rui.zhang@intel.com, sachin.kamat@linaro.org, patches@linaro.org, Nobuhiro Iwamatsu Subject: [PATCH 4/6] Thermal: kirkwood: Remove redundant platform_set_drvdata() Date: Fri, 3 May 2013 15:27:11 +0530 Message-Id: <1367575034-18432-4-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1367575034-18432-1-git-send-email-sachin.kamat@linaro.org> References: <1367575034-18432-1-git-send-email-sachin.kamat@linaro.org> X-Gm-Message-State: ALoCoQkrncqOJmwFW34kAtqlNi2OkTMUrNzR2gmsZJ+3Ia0h6Y8YjV/H2dhB9uKpWVm/sNIr618O Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Commit 0998d06310 (device-core: Ensure drvdata = NULL when no driver is bound) removes the need to set driver data field to NULL. Signed-off-by: Sachin Kamat Cc: Nobuhiro Iwamatsu Acked-by: Eduardo Valentin Acked-by: Nobuhiro Iwamatsu --- drivers/thermal/kirkwood_thermal.c | 1 - 1 file changed, 1 deletion(-) 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; }