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: 9341097 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 6D089601C2 for ; Tue, 20 Sep 2016 06:48:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5E54529C59 for ; Tue, 20 Sep 2016 06:48:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 52B7829C5D; Tue, 20 Sep 2016 06:48:37 +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 5DD3129C59 for ; Tue, 20 Sep 2016 06:48:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751729AbcITGsf (ORCPT ); Tue, 20 Sep 2016 02:48:35 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:36827 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751119AbcITGse (ORCPT ); Tue, 20 Sep 2016 02:48:34 -0400 Received: by mail-pf0-f193.google.com with SMTP id n24so496310pfb.3 for ; Mon, 19 Sep 2016 23:48:33 -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=QiJxCuX4DmDqWlYxmWZFeaCH6kaaH39Viu1zFJVIW02R637YEzGOyjDFn5V067nbM4 HcTKlz5eCPQFSNpDyJ6yseVvoMeIUjAioxn2tbeeUfEhq1J4ObUELuR9nw4dTSOjiHA1 hwPwbpS4zNWVtFUWz+7QJEdT3NueXP/kmLVGRwlowon6t0pLAplRDSonk7Fbb2yNcnoz dd1YK/nJHKY7R/7dtaUr/sNajwAEuVfay/5yw/iPyVKjG5yvuGvzHYcSRydQh8o2HArQ SCikkQfmLJDlXsxjmIVALU6apWCtM7rwba2ZRq+hmX2B7Vf2oKsgFWaaUGjIRsPCYoZA UZBw== X-Gm-Message-State: AE9vXwPMFFn9Qk0cIxUVZxA7SFwEFyv8aVOHmgfbUiZw/xYb4z8lF8bMcQCqH/LAToTJTw== 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-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@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 */