From patchwork Tue Sep 20 06:48:20 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Lin X-Patchwork-Id: 9341099 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 9D773601C2 for ; Tue, 20 Sep 2016 06:48:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8EC6F29C56 for ; Tue, 20 Sep 2016 06:48:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 83C0D29C5A; Tue, 20 Sep 2016 06:48:38 +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.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,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 2ABBE29C56 for ; Tue, 20 Sep 2016 06:48:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751765AbcITGsf (ORCPT ); Tue, 20 Sep 2016 02:48:35 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:32932 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751218AbcITGse (ORCPT ); Tue, 20 Sep 2016 02:48:34 -0400 Received: by mail-pf0-f193.google.com with SMTP id q2so500077pfj.0 for ; Mon, 19 Sep 2016 23:48:34 -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; bh=BTsECAQhXjLgthe98/02VITfZk/5tCne98fin9vsHYM=; b=0hLVZK0fp0DzclUGOPn+W810YBXwPjpcTDP19WwaqSIaiisX1Q8nEzD6PRR7Wgzrho uVKSNaHMB0uyRqyC9u6GMYv+ge1ptcMOtMnl6yfD/U5pqKpUq4v7NZzn32zvXWsp1lCH jgSBOb6gneAJfqrjPVK1cz04L9SQJ8jjaxz4lyQ5OPLLNBu96COIiHvuOXROgi3+BLck wFBUyZqC1xkc8MQsdlzwBea7drfGUSYBkwdzX4IUPI1LZLWCa/3rVRI9nYx8dhpf+1+R DzfMORk2y4XlJVX9aBGcFgI/2XXWCp7r1QniR6XP9PIQ50xyd/RJPw/22SNc82IqeNsb NMKw== 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; bh=BTsECAQhXjLgthe98/02VITfZk/5tCne98fin9vsHYM=; b=izoAlOLMoM1PdRhXJR8wP1kC/wLFwI0pySw0VvQSSEDlTszk1E7/y39pO944qItALu 8DbxxVUeootGyPuiEP+oygK22eOPeeXDZk75uJJSOk4aMokS6yBj4FgIgZcg6P0gf7ct +qiGeDcOLaIN8TJcDvys6LhIeDSbqeIy6P1a0fDLiR6yfju0XZpz9Wyh8uFpTO5ao3+2 eOQOY5WLonvAJNfjCtZqCEC7AdCktPjRA8BLsh1x+2JjlHgFQyy3WSV0gew5CEfNQcTh IyRzOVD8YCkA62xNs7v5C7aDxWYxBM4H4KOtlnQV5UFN7hinjHqibuO/bdYRb73bxU2e KyaA== X-Gm-Message-State: AE9vXwODRZ7R5uvB6Yw7daviN8opoBHEWwhlH9OMWe1pQCWyEZoZ4KpLIVU+84buJqnbSQ== X-Received: by 10.98.138.207 with SMTP id o76mr54268942pfk.100.1474354113261; Mon, 19 Sep 2016 23:48:33 -0700 (PDT) Received: from localhost.localdomain (59-115-243-103.dynamic.hinet.net. [59.115.243.103]) by smtp.gmail.com with ESMTPSA id bm8sm36098812pac.16.2016.09.19.23.48.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 19 Sep 2016 23:48:32 -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] PM / devfreq: exynos-ppmu: Remove unused mutex from struct exynos_ppmu Date: Tue, 20 Sep 2016 14:48:20 +0800 Message-Id: <1474354100-6092-1-git-send-email-axel.lin@ingics.com> X-Mailer: git-send-email 2.7.4 Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The mutex is not used at all, remove it. Signed-off-by: Axel Lin Acked-by: Chanwoo Choi --- drivers/devfreq/event/exynos-ppmu.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/devfreq/event/exynos-ppmu.c b/drivers/devfreq/event/exynos-ppmu.c index f55cf0e..251692b 100644 --- a/drivers/devfreq/event/exynos-ppmu.c +++ b/drivers/devfreq/event/exynos-ppmu.c @@ -15,7 +15,6 @@ #include #include #include -#include #include #include #include @@ -34,7 +33,6 @@ struct exynos_ppmu { unsigned int num_events; struct device *dev; - struct mutex lock; struct exynos_ppmu_data ppmu; }; @@ -463,7 +461,6 @@ static int exynos_ppmu_probe(struct platform_device *pdev) if (!info) return -ENOMEM; - mutex_init(&info->lock); info->dev = &pdev->dev; /* Parse dt data to get resource */