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: 16628 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f199.google.com (mail-vc0-f199.google.com [209.85.220.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id CFC4023905 for ; Fri, 3 May 2013 10:10:35 +0000 (UTC) Received: by mail-vc0-f199.google.com with SMTP id hz10sf2559526vcb.2 for ; Fri, 03 May 2013 03:10:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:x-beenthere:x-received:received-spf :x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-received:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe; bh=FAgY0iMHPHiWwA7t8JBJF8Sw5YZiRjMBaNndOlaL/es=; b=nuUxlrQu+6+RcaO9ML8XQRGMHQLwO2qbChqyoXBtQt08BTsFk1kDCw74sYl6+US58Y 02GnYFWdAhMEmy7ign8436W6OLeCRpGRzSltTNA/v4iP7QiYn2rkGdFk8NOz6KeIRGSM BZyV51Z4Xx/Ci1MGIZLCFtc2M3U5QOIiLO8UTpw+y/uOZQhBozFvd/rt1BJOnChOjvge 1l9/T0/u4MLwPnYDMe3D6OhIYDDbExB2ZLr7bSvvUBaVzXAWH5Ncpe905UxMFIQT91vs g0o+tFFQfNncXAcuhCq9XFRj7f8ObVpX2d/D6+etIEGsU6+T7mOvfK4o9GtGH9WjYohJ l6Ig== X-Received: by 10.236.14.233 with SMTP id d69mr7756448yhd.51.1367575826468; Fri, 03 May 2013 03:10:26 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.71.141 with SMTP id v13ls1806957qeu.84.gmail; Fri, 03 May 2013 03:10:26 -0700 (PDT) X-Received: by 10.52.27.52 with SMTP id q20mr3010641vdg.16.1367575826268; Fri, 03 May 2013 03:10:26 -0700 (PDT) Received: from mail-vb0-x22c.google.com (mail-vb0-x22c.google.com [2607:f8b0:400c:c02::22c]) by mx.google.com with ESMTPS id fd1si4774715vcb.65.2013.05.03.03.10.26 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 03 May 2013 03:10:26 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c02::22c is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=2607:f8b0:400c:c02::22c; Received: by mail-vb0-f44.google.com with SMTP id e13so1207397vbg.31 for ; Fri, 03 May 2013 03:10:26 -0700 (PDT) X-Received: by 10.221.0.199 with SMTP id nn7mr3478718vcb.14.1367575826158; Fri, 03 May 2013 03:10:26 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.58.127.98 with SMTP id nf2csp14641veb; Fri, 3 May 2013 03:10:25 -0700 (PDT) X-Received: by 10.66.246.77 with SMTP id xu13mr13897258pac.29.1367575825165; Fri, 03 May 2013 03:10:25 -0700 (PDT) Received: from mail-pd0-f180.google.com (mail-pd0-f180.google.com [209.85.192.180]) by mx.google.com with ESMTPS id pl14si7404336pab.343.2013.05.03.03.10.24 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 03 May 2013 03:10:25 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.180 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.192.180; Received: by mail-pd0-f180.google.com with SMTP id t10so842320pdi.11 for ; Fri, 03 May 2013 03:10:24 -0700 (PDT) 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: ALoCoQkWvywTX/yQFzdrZ8GwTz+GBQ41te22bZAPbrU5iGUzj4HM+++X//9B8NY7wdtHioYgewjB X-Original-Sender: sachin.kamat@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c02::22c is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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);