From patchwork Fri May 3 09:57:12 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 16627 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f71.google.com (mail-yh0-f71.google.com [209.85.213.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 9399523905 for ; Fri, 3 May 2013 10:10:32 +0000 (UTC) Received: by mail-yh0-f71.google.com with SMTP id a41sf2674711yho.2 for ; Fri, 03 May 2013 03:10:23 -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=tUE2bwSp3w4OtEC8nYUONSDGSvz2RLrKmcyl4+fKtvU=; b=iB+gT5WDnrdqTuXZ4UWwTr9fcWg1YUFOaey5OJO6bMIXDXve/B3rtijs/7LdJE4ZWH tqbBN66amk47LBF8KxZA3hneIm7RuBliJP0iN5g4BWdcsybivd0tpJOeq8Q/03iczwfO 8gGw5k45y2LNA2zjxVmf2Djmi03HgT8fxzAIusBrekOCX2+XNcRI85SVT3LV+Hyx8UrL xffDKzRxrEDMAv0potr/bJbdwP5xmj7RQRlzpM8xkx/KgVtNeLBbiLDsKN6Wc86AB/Hs fKV7JQ6bSt29QS3RRXwXQb9W6tmNFkzL5xPy7Svq7UeEkYe28mcZ+/Ck6vKruAbaVhgE qwZg== X-Received: by 10.236.78.103 with SMTP id f67mr8061809yhe.52.1367575823202; Fri, 03 May 2013 03:10:23 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.18.168 with SMTP id x8ls1793057qed.75.gmail; Fri, 03 May 2013 03:10:23 -0700 (PDT) X-Received: by 10.52.170.204 with SMTP id ao12mr2932713vdc.83.1367575823022; Fri, 03 May 2013 03:10:23 -0700 (PDT) Received: from mail-ve0-x230.google.com (mail-ve0-x230.google.com [2607:f8b0:400c:c01::230]) by mx.google.com with ESMTPS id zp6si4803409vdb.2.2013.05.03.03.10.22 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 03 May 2013 03:10:23 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c01::230 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:c01::230; Received: by mail-ve0-f176.google.com with SMTP id b10so1316431vea.7 for ; Fri, 03 May 2013 03:10:22 -0700 (PDT) X-Received: by 10.58.230.130 with SMTP id sy2mr3424891vec.22.1367575822903; Fri, 03 May 2013 03:10:22 -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 nf2csp14640veb; Fri, 3 May 2013 03:10:22 -0700 (PDT) X-Received: by 10.66.145.67 with SMTP id ss3mr14068935pab.18.1367575822026; Fri, 03 May 2013 03:10:22 -0700 (PDT) Received: from mail-pd0-f172.google.com (mail-pd0-f172.google.com [209.85.192.172]) by mx.google.com with ESMTPS id o6si7474128pac.80.2013.05.03.03.10.21 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 03 May 2013 03:10:22 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.172 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.192.172; Received: by mail-pd0-f172.google.com with SMTP id 5so846778pdd.17 for ; Fri, 03 May 2013 03:10:21 -0700 (PDT) X-Received: by 10.66.146.74 with SMTP id ta10mr13872769pab.60.1367575821614; Fri, 03 May 2013 03:10:21 -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.18 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 03 May 2013 03:10:21 -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, Kuninori Morimoto Subject: [PATCH 5/6] Thermal: rcar: Remove redundant platform_set_drvdata() Date: Fri, 3 May 2013 15:27:12 +0530 Message-Id: <1367575034-18432-5-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: ALoCoQk/oCNOvM3k3+BYBg+o5vv5qXkxYSlzYZZjAMg5Q0NvIWcC77t8EIiCuanqTUtD3jKwnIv6 X-Original-Sender: sachin.kamat@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c01::230 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: Kuninori Morimoto Acked-by: Eduardo Valentin --- drivers/thermal/rcar_thermal.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/thermal/rcar_thermal.c b/drivers/thermal/rcar_thermal.c index 8d7edd4..63c7c13 100644 --- a/drivers/thermal/rcar_thermal.c +++ b/drivers/thermal/rcar_thermal.c @@ -487,8 +487,6 @@ static int rcar_thermal_remove(struct platform_device *pdev) rcar_thermal_irq_disable(priv); } - platform_set_drvdata(pdev, NULL); - pm_runtime_put_sync(dev); pm_runtime_disable(dev);