From patchwork Sun Sep 25 12:13:58 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Lin X-Patchwork-Id: 9349687 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 56DE36086A for ; Sun, 25 Sep 2016 12:14:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 47B8628DA5 for ; Sun, 25 Sep 2016 12:14:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3C35928DA7; Sun, 25 Sep 2016 12:14:18 +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_SIGNED, 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 E287328DA6 for ; Sun, 25 Sep 2016 12:14:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966288AbcIYMOQ (ORCPT ); Sun, 25 Sep 2016 08:14:16 -0400 Received: from mail-pa0-f66.google.com ([209.85.220.66]:33393 "EHLO mail-pa0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966297AbcIYMOP (ORCPT ); Sun, 25 Sep 2016 08:14:15 -0400 Received: by mail-pa0-f66.google.com with SMTP id oz2so7375304pac.0 for ; Sun, 25 Sep 2016 05:14:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ingics-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=UCx0v4wldCXKGRnYOk+jqk6wLh7SdRHdIyGX5YFMjoY=; b=FJEaiD8YA1kF89ccYZj60G7yndYkrgUHUeO1S61SMQ/1eWyU2fEljwbd14VUtkeoJG D9g9DBLyHj+apIAIfZ7eIDTAWNFhoM9ynEOT3QTCvP/9evjUfo664r/6zSvbzP69ar0o 2tELsmH4QJkx8cyDxaAMIOvVGAczh3XwzEQtJKPseXWTnxS9xpBHicGd55surSeNQfzL oae0ydomuPxM0OJwFyTppKkb2rGnUlRTrGhuQaeBcy9ag2Ye+GwAmHpNl17ex+NqNf+4 MURzmxFP9DzpUOt6gguVkxxJipVVG6I0DB1QIeAlFdhSgcw0HGI1LYqCqh5htNzk1OVP ER6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=UCx0v4wldCXKGRnYOk+jqk6wLh7SdRHdIyGX5YFMjoY=; b=PSU8XOOP3d3mjeXfj03LAZRsyY+asK66M8M9SFRNQQR3aYBN0E2JA1Ay+ck9qCXGmC fPFj/sLagEsBtrz46b6XtCOovY+4NgYQLgTxO0FswoVub4tqElwT9owDp4sIpAchjXF4 M3nbIqr+fbmQ355S1I9cO9ma+PHS6fWos7w8HGoWLtsUGvMe8OmRqzMahTPWGSuiOR/y rj3THSqr8fi589AbevMyhVB5ck5hfsxu9AQaYGU9T6QXCcGhwMQ8IdUWaAw80Z7QVE+B 9jZ7f4+J2HeDNwihJ/brwZXh4DyImrYYCdujP24dsQgInpnM8inYeQJco8bzUG6byJ14 kZhQ== X-Gm-Message-State: AE9vXwOlyvnLihqL1euBfxAcs9DSWmBnZtVbp1KasH/S+17xEZuElUwoST6eJtdCCwQ1NQ== X-Received: by 10.66.177.193 with SMTP id cs1mr29198721pac.140.1474805654247; Sun, 25 Sep 2016 05:14:14 -0700 (PDT) Received: from localhost.localdomain (223-137-0-10.EMOME-IP.hinet.net. [223.137.0.10]) by smtp.gmail.com with ESMTPSA id e21sm23617972pfb.96.2016.09.25.05.14.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 25 Sep 2016 05:14:13 -0700 (PDT) From: Axel Lin To: "Rafael J . Wysocki" Cc: Chanwoo Choi , MyungJoo Ham , Kyungmin Park , linux-pm@vger.kernel.org, linux-samsung-soc@vger.kernel.org, Axel Lin Subject: [PATCH v2 2/2] PM / devfreq: exynos-nocp: Remove redundant code to reset load_count/total_count Date: Sun, 25 Sep 2016 20:13:58 +0800 Message-Id: <1474805638-30407-2-git-send-email-axel.lin@ingics.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1474805638-30407-1-git-send-email-axel.lin@ingics.com> References: <1474805638-30407-1-git-send-email-axel.lin@ingics.com> 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 This is done by devfreq_event_get_event() so remove the redundant code in exynos_nocp_get_event(). Signed-off-by: Axel Lin Acked-by: Chanwoo Choi --- v2: only add Chanwoo's Ack. drivers/devfreq/event/exynos-nocp.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/devfreq/event/exynos-nocp.c b/drivers/devfreq/event/exynos-nocp.c index a584140..49e712a 100644 --- a/drivers/devfreq/event/exynos-nocp.c +++ b/drivers/devfreq/event/exynos-nocp.c @@ -176,9 +176,6 @@ static int exynos_nocp_get_event(struct devfreq_event_dev *edev, return 0; out: - edata->load_count = 0; - edata->total_count = 0; - dev_err(nocp->dev, "Failed to read the counter of NoC probe device\n"); return ret;