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: 2516691 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 02061DF2E5 for ; Fri, 3 May 2013 10:10:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1763074Ab3ECKKW (ORCPT ); Fri, 3 May 2013 06:10:22 -0400 Received: from mail-pd0-f173.google.com ([209.85.192.173]:36891 "EHLO mail-pd0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1763033Ab3ECKKW (ORCPT ); Fri, 3 May 2013 06:10:22 -0400 Received: by mail-pd0-f173.google.com with SMTP id v10so844377pde.32 for ; Fri, 03 May 2013 03:10:21 -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=tUE2bwSp3w4OtEC8nYUONSDGSvz2RLrKmcyl4+fKtvU=; b=FKZOk+bQ7wneiESCR3wCTP7vG4YzoTC+U8ga3YQ1Ml1SkD9ItninGbQfDqwU6lf/Ki vAdp64jDfuh1tOpOkdvobAskzPUMyrrI9RQlau/6lH9hvAQfIPBiVlq80ZP6APi/NLDp UpSrgFhKs3Ju7GJPGMFJo5HeUSDwLnZcWp5dDJEDR/SxPTKJSEsrsvuZegCwE7UEgH9L k/gJZwkyH/WpEuIZkfT/h8Mvu8emj47m4hiJlUoRKafsPx/h5oDO54ztXYIljlUJ5NaV awYWlYiWUCKARE8uHBb/Wgfr3Rk9H8RDB1wgjgtbDymKK0y/ALQ09108aiS48F7v0L95 Gryw== 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: ALoCoQkdvV8Di8DseNCsl2uj0sVehRJXNmo/HXQayGs2TRAq68RocfTctAmudBlLtIHn8s5PQbI6 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: 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);