From patchwork Fri May 3 09:57:13 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2516701 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 207BCDF2E5 for ; Fri, 3 May 2013 10:10:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1763076Ab3ECKKZ (ORCPT ); Fri, 3 May 2013 06:10:25 -0400 Received: from mail-pa0-f42.google.com ([209.85.220.42]:59205 "EHLO mail-pa0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1763036Ab3ECKKZ (ORCPT ); Fri, 3 May 2013 06:10:25 -0400 Received: by mail-pa0-f42.google.com with SMTP id bj3so848239pad.1 for ; Fri, 03 May 2013 03:10:24 -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=FAgY0iMHPHiWwA7t8JBJF8Sw5YZiRjMBaNndOlaL/es=; b=lJAor0dom6MclVS8bJkWj5vtDnd1bPf6RDvGh1/Xt3TrvIs+vIr02eKg8vo2B42JdI hugN6WwyXPajaPyt9GxCRsmJaEkpN81VYutxIWFMwp2UC4EL618OPlAhxP4s+mxdE9QW trEURJBj2DiJCV4+8NHvsK0VvxQkL89Z8Nhwxo8E1J2A8oiKO9/C8nv1ZshCDXXxdqz9 ImuVFEn8sazUs+Je6BFadhAE9YGBlJVPz6uHP8wCQ/WEHupTz9D57uHvHNxjptiz5TPY tgpASidKnLmWOWV2FKuc0+h+wduUVM75fGoRLplipxEjkbedhXIOF+dUnLvYkIQ8FIOK fozQ== X-Received: by 10.66.220.197 with SMTP id py5mr13984269pac.86.1367575824787; Fri, 03 May 2013 03:10:24 -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.21 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 03 May 2013 03:10:24 -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, Vincenzo Frascino Subject: [PATCH 6/6] Thermal: spear: Remove redundant platform_set_drvdata() Date: Fri, 3 May 2013 15:27:13 +0530 Message-Id: <1367575034-18432-6-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: ALoCoQm042Cb8G4yrzRenKyBZQgU6Vyl9rdQl4xPsNF+0Zj7VucLeUxTCfyZbYDGFOZwNI5RQUuR 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: Vincenzo Frascino Acked-by: Eduardo Valentin Acked-by: Viresh Kumar --- drivers/thermal/spear_thermal.c | 1 - 1 file changed, 1 deletion(-) 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);