From patchwork Tue Feb 7 15:56:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yongjun X-Patchwork-Id: 9560501 X-Patchwork-Delegate: rjw@sisk.pl Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C0C9460434 for ; Tue, 7 Feb 2017 15:59:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AFE2221F61 for ; Tue, 7 Feb 2017 15:59:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A2DF7282E2; Tue, 7 Feb 2017 15:59:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2FDD821F61 for ; Tue, 7 Feb 2017 15:59:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755032AbdBGP5s (ORCPT ); Tue, 7 Feb 2017 10:57:48 -0500 Received: from mail-pg0-f68.google.com ([74.125.83.68]:35154 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754951AbdBGP4y (ORCPT ); Tue, 7 Feb 2017 10:56:54 -0500 Received: by mail-pg0-f68.google.com with SMTP id 204so12455607pge.2 for ; Tue, 07 Feb 2017 07:56:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=1Mca0cFPiqnrzMuamlKcl+BFxxSzzF+OfMh95Ks+t4U=; b=GYXXD9XabMpMMo3Nxtpcu0T/KLVBE/mGc6UswhHMVnbUSzyKY4DDD7pqki7akuBV8p hnC9atX3Mb7Yu4RbAiCh3cN9yujtoCFSN//RmVkGRiw8k5MEf6ri/QkFW5cN1tk8yxGc MdNOM9IMS7V7PYOGwht5CpOPuPq/wKFprjGGRXeHcOpLCQ987Nl+grbDeTRG5HdCEFZL hJurwzGPLWkcE+OC/ZR+kAK2FJXov0ao8qepclP3MHzrX7J66Y58J4+o82Ccyeg50S2n qvWzYcdbYp5mk5o9HfdjkWM2yDVRkdtWhbXbj2K1Xd1hBwPfWsets/NelZZA79YbINHq SLKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=1Mca0cFPiqnrzMuamlKcl+BFxxSzzF+OfMh95Ks+t4U=; b=qcGcPaZu2UX3767hB4BIHoqCDFiYgMAZrbesjCU1nrnEcocpVrOngYNbpwCW0ntysh buHiHvI2sZ3URYK9ms1SUJ3W7QKvqevv9S3U86zAlXyzLo2yBhhqVbWhAGpvNOUj1uzb Chj6ODCErzdzNPGwLmqAMkuxE56l/M0twQ/u1uaYVbPtKGHFec2JQwi3pHoYGujqp7uw iTZ4nV7yNiGS5OpKNewJdl7sk5Hf7nl8bTSiPoSt14j8to5vXaATFtBROWBgo/5BGYiu WOceNwq/1jey4755yoKawnOJVph5Zq6dMv0xFukRpwqBx4L4S3ontzP9DPrlbsFPCXRg 3W7A== X-Gm-Message-State: AIkVDXK8FHbQu1bZoBRubRwuEmz4cJieHdlzDYFmPzxNcwIJqT5qVA+IM9pyWHr7092DBQ== X-Received: by 10.84.143.165 with SMTP id 34mr27105698plz.2.1486483013662; Tue, 07 Feb 2017 07:56:53 -0800 (PST) Received: from 192.168.0.37 (ec2-52-192-197-227.ap-northeast-1.compute.amazonaws.com. [52.192.197.227]) by smtp.gmail.com with ESMTPSA id r16sm12516395pfg.76.2017.02.07.07.56.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Feb 2017 07:56:53 -0800 (PST) From: Wei Yongjun To: Markus Mayer , "Rafael J. Wysocki" , Viresh Kumar , Brian Norris , Gregory Fong , Florian Fainelli Cc: Wei Yongjun , bcm-kernel-feedback-list@broadcom.com, linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH -next] cpufreq: brcmstb-avs-cpufreq: remove unnecessary platform_set_drvdata() Date: Tue, 7 Feb 2017 15:56:45 +0000 Message-Id: <20170207155645.5455-1-weiyj.lk@gmail.com> X-Mailer: git-send-email 2.9.3 MIME-Version: 1.0 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Wei Yongjun The driver core clears the driver data to NULL after device_release or on probe failure. Thus, it is not needed to manually clear the device driver data to NULL. Signed-off-by: Wei Yongjun Acked-by: Viresh Kumar --- drivers/cpufreq/brcmstb-avs-cpufreq.c | 2 -- 1 file changed, 2 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-pm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/cpufreq/brcmstb-avs-cpufreq.c b/drivers/cpufreq/brcmstb-avs-cpufreq.c index c943606..7281a2c 100644 --- a/drivers/cpufreq/brcmstb-avs-cpufreq.c +++ b/drivers/cpufreq/brcmstb-avs-cpufreq.c @@ -878,7 +878,6 @@ static int brcm_avs_prepare_init(struct platform_device *pdev) iounmap(priv->avs_intr_base); unmap_base: iounmap(priv->base); - platform_set_drvdata(pdev, NULL); return ret; } @@ -1042,7 +1041,6 @@ static int brcm_avs_cpufreq_remove(struct platform_device *pdev) priv = platform_get_drvdata(pdev); iounmap(priv->base); iounmap(priv->avs_intr_base); - platform_set_drvdata(pdev, NULL); return 0; }