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: 16625 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f200.google.com (mail-vc0-f200.google.com [209.85.220.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 1209023905 for ; Fri, 3 May 2013 10:10:27 +0000 (UTC) Received: by mail-vc0-f200.google.com with SMTP id m16sf2560426vca.3 for ; Fri, 03 May 2013 03:10:17 -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=5OuPo+zfESWG0sAn/mktJXdg/BT4njUE/zBsnCrs2qM=; b=O+fMDw6u6Cqx+oTbCZR92pOmkGeJRvVgCK746e5yf51R3ZGfucx6VW7WZ2fQRjtVFR J6bq8x45n2QoJnAMXc8gfJ+8OM6R1tWegek+H6M2XtSUrVd5rVSx6WZ+ADajPk+v0aBQ R+hQseGC7LAjhYD4urN2dED32nMhncZWxkHtZiDRXpgsOFCgIX2pyOVN+5CaLoWfW2S8 iDCNLRThXjcq34jmGvHnu94eqHPIp/pk1FsVmwIiqwSI7NQZgvWOJj3rKGOmrid3AZht tk8J9i3BDnLQ4TvvX9ot7lNZ26tsaUNm3MS0DHV0alYkdlW31Ywlt1ph6vXUj7SYZyeK jxWw== X-Received: by 10.236.143.177 with SMTP id l37mr8276862yhj.9.1367575817222; Fri, 03 May 2013 03:10:17 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.120.229 with SMTP id lf5ls1662973qeb.23.gmail; Fri, 03 May 2013 03:10:16 -0700 (PDT) X-Received: by 10.58.76.3 with SMTP id g3mr3366321vew.58.1367575816861; Fri, 03 May 2013 03:10:16 -0700 (PDT) Received: from mail-vb0-x234.google.com (mail-vb0-x234.google.com [2607:f8b0:400c:c02::234]) by mx.google.com with ESMTPS id u8si4770700vck.75.2013.05.03.03.10.16 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 03 May 2013 03:10:16 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c02::234 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::234; Received: by mail-vb0-f52.google.com with SMTP id p13so1218041vbe.11 for ; Fri, 03 May 2013 03:10:16 -0700 (PDT) X-Received: by 10.220.242.73 with SMTP id lh9mr3382672vcb.49.1367575816748; Fri, 03 May 2013 03:10:16 -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 nf2csp14635veb; Fri, 3 May 2013 03:10:16 -0700 (PDT) X-Received: by 10.66.26.143 with SMTP id l15mr13734641pag.207.1367575815848; Fri, 03 May 2013 03:10:15 -0700 (PDT) Received: from mail-da0-x230.google.com (mail-da0-x230.google.com [2607:f8b0:400e:c00::230]) by mx.google.com with ESMTPS id lq8si7451140pab.171.2013.05.03.03.10.15 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 03 May 2013 03:10:15 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400e:c00::230 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=2607:f8b0:400e:c00::230; Received: by mail-da0-f48.google.com with SMTP id h32so732588dak.21 for ; Fri, 03 May 2013 03:10:15 -0700 (PDT) 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: ALoCoQnNyqGQmx+iGmMjKG1UJjLIWYdf4H2QZCoq1ulEokY7fpXZ2xJwOjj54tiIIk4BnL672Z5y X-Original-Sender: sachin.kamat@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c02::234 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 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; }