From patchwork Fri May 3 09:57:09 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2516661 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 1BBDEDF2E5 for ; Fri, 3 May 2013 10:10:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1763020Ab3ECKKN (ORCPT ); Fri, 3 May 2013 06:10:13 -0400 Received: from mail-pb0-f45.google.com ([209.85.160.45]:48634 "EHLO mail-pb0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760354Ab3ECKKM (ORCPT ); Fri, 3 May 2013 06:10:12 -0400 Received: by mail-pb0-f45.google.com with SMTP id ro12so829546pbb.32 for ; Fri, 03 May 2013 03:10:12 -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=rS3crWOmBJWrx22N9CHx+GbqXyhxQRzSoGdbSvlAys0=; b=WF8cLcQn8Ydlgd6IybKt42q6ggLGzK8eQ2n6tLO4pb5nqdlxKvDCJIVVZAF6cGPrJc gKslyuqyRSgJf4BoT6czjQGCyy9X4sAvg8UenUlucOtjbSNyA3tFMivz/ain9XByPL5B AIVEo+pSjiB+OPKQQUzD9eqpN2N+CevHt7RxoKD+Cu79LpaVIkiX7k6bJsdQDRejf8Dp ASVXCN1pEHHPtIhp2QPAWQ+xUIY3dn/o7iYDM66vYAuFrEimJ6Y3kOoS4PMqgr4zF6pm RxM6nBzTyB0dBcsxh4UA9y8grAShZUbY/5NeYDQY9j5iCUl3S11P64uzAv0UoWEWSjCy GwzA== X-Received: by 10.68.247.228 with SMTP id yh4mr13031325pbc.60.1367575812429; Fri, 03 May 2013 03:10:12 -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.09 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 03 May 2013 03:10:11 -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, Andrew Lunn Subject: [PATCH 2/6] Thermal: dove_thermal: Remove redundant platform_set_drvdata() Date: Fri, 3 May 2013 15:27:09 +0530 Message-Id: <1367575034-18432-2-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: ALoCoQlrNivQToirCsGp9zls2wsfSjthV9h/Sl3zlLtyucPhAGXIwi1UW6J6RS7oWuAM2iGwjkD0 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: Andrew Lunn Acked-by: Andrew Lunn Acked-by: Eduardo Valentin --- drivers/thermal/dove_thermal.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/thermal/dove_thermal.c b/drivers/thermal/dove_thermal.c index 4b15a5f..900479e 100644 --- a/drivers/thermal/dove_thermal.c +++ b/drivers/thermal/dove_thermal.c @@ -182,7 +182,6 @@ static int dove_thermal_exit(struct platform_device *pdev) platform_get_drvdata(pdev); thermal_zone_device_unregister(dove_thermal); - platform_set_drvdata(pdev, NULL); return 0; }