From patchwork Fri May 3 09:57:10 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2516671 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 0D691DF2E5 for ; Fri, 3 May 2013 10:10:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1763032Ab3ECKKQ (ORCPT ); Fri, 3 May 2013 06:10:16 -0400 Received: from mail-da0-f41.google.com ([209.85.210.41]:34697 "EHLO mail-da0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761852Ab3ECKKP (ORCPT ); Fri, 3 May 2013 06:10:15 -0400 Received: by mail-da0-f41.google.com with SMTP id y19so748590dan.14 for ; Fri, 03 May 2013 03:10:15 -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=5OuPo+zfESWG0sAn/mktJXdg/BT4njUE/zBsnCrs2qM=; b=nsL2CE2oskibZlQA5QIvvJuzscD1/vT0Fzb/N9ySjrzjBPvoVAljMEkquBbBEuiip5 uAXOm6cqC6u8OHq5sGWScwOGyuMbCItGn6gr4SQAyyXV11baavkTd3L1rSbsFfG72ZdB /oArT+H2MY6IP3FAXdu5BRS1UngBqnvIUnyiLUgpQlDS6jtsja+/XXzLW6fKlYIJkfFu gS2mbu0pUwFEGL6mAsvJRE1t4hcePMyUFedKkutvjkpsr02CvSjbc3hn62VOfuQduJMs x6dslvvo5HX1YN0hFDKwhb6PTwe5Zr7wjROEfFt2CNgOL10ZA9AQaRQf0Spm4J/SFZoL ySeQ== X-Received: by 10.66.90.198 with SMTP id by6mr13832234pab.219.1367575815394; Fri, 03 May 2013 03:10:15 -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.12 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 03 May 2013 03:10:14 -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 Subject: [PATCH 3/6] Thermal: exynos: Remove redundant platform_set_drvdata() Date: Fri, 3 May 2013 15:27:10 +0530 Message-Id: <1367575034-18432-3-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: ALoCoQnLNnIaqKA01Hpa9K6H7qDBlJnk/kdcxhopNUf0Sm2n9rstmiSSsiZqWXHmJp8ag9tMaCyQ 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 Acked-by: Eduardo Valentin --- drivers/thermal/exynos_thermal.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/thermal/exynos_thermal.c b/drivers/thermal/exynos_thermal.c index d20ce9e..992ae6e 100644 --- a/drivers/thermal/exynos_thermal.c +++ b/drivers/thermal/exynos_thermal.c @@ -1001,7 +1001,6 @@ static int exynos_tmu_probe(struct platform_device *pdev) return 0; err_clk: - platform_set_drvdata(pdev, NULL); clk_unprepare(data->clk); return ret; } @@ -1016,8 +1015,6 @@ static int exynos_tmu_remove(struct platform_device *pdev) clk_unprepare(data->clk); - platform_set_drvdata(pdev, NULL); - return 0; }