From patchwork Fri Oct 21 01:09:09 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Lin X-Patchwork-Id: 9387789 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 45D3B60762 for ; Fri, 21 Oct 2016 01:09:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 46E2E29A48 for ; Fri, 21 Oct 2016 01:09:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3BAC529B14; Fri, 21 Oct 2016 01:09:36 +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 B578629A48 for ; Fri, 21 Oct 2016 01:09:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754396AbcJUBJe (ORCPT ); Thu, 20 Oct 2016 21:09:34 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:33815 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752876AbcJUBJd (ORCPT ); Thu, 20 Oct 2016 21:09:33 -0400 Received: by mail-pf0-f195.google.com with SMTP id 128so6974667pfz.1 for ; Thu, 20 Oct 2016 18:09:32 -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=XORVljGc5hK9+5qQ2gXNJuJR1sHa2HOu38VbfKkCmmU=; b=fWn7aNNFYe1JGhqTrz4HjmY8SbfE9snN+EonruvfOG99ezFs6hPZEPBh7EEqN3Gc/x gGm12stMYpu2bRtaIeZeGxksMn7gJyt9tUTAi7G7T4FtmJrtL2llO87JrMDUqKQ+CqbZ HMD4es0keGu78IKVPT+z4vCC8s2hIZOn1xb0P6zw+pFSBNtpc2m+tEQQ1JMy4doX1JuA U+Qx0WgQSkR5uXKgrLi28GZAdzyKItkSXd7V8udlQZhFxvYbSFY8hTSqMsxMDnqGgdwZ Bu7Ti7Fv1oC1TWFRxODGDznAb8igzzBquimKgBkn60R7fAeZ8DweR2okyiNo2p1buqtR bxyQ== 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=XORVljGc5hK9+5qQ2gXNJuJR1sHa2HOu38VbfKkCmmU=; b=G028l+MxGLAz67uarPV/sHsdAto2SLe3oSzb66EumskT4QxrN86DsI1g/pqP9al310 Yxl4/DEcWYf+whJuQNFAC7dp2RWHk+lu80YT0n+rQtG3aXpjJZpB9QBRx4FFV84KDaUF NgjGZ7hhT8Cy/VCgJ8h/tiflqtv5yHxCekR/Yk8hmBgigtnEo260nNmFhQrjcXLNiV1n B3q/NfIK/gxM4lzHnMhQnFZGYz1bAy8dA8rbH4e+vKY2HLD1e2GwvwQ9OY8F5iGpWE7F WXNcrn1qNvIXXk4Dq78zKegvhYFg8GtHMAe1FTqGldLCleVoZvFROwBitbFXoUEVzNEi X2cw== X-Gm-Message-State: AA6/9RlJ+Nb3ssKLyI7lExS7SCSS9/OZ5sHD2OnLtu5WXGhTuKzHY4lrId6SL7N6yNZh8Q== X-Received: by 10.99.163.1 with SMTP id s1mr5309854pge.126.1477012172449; Thu, 20 Oct 2016 18:09:32 -0700 (PDT) Received: from localhost.localdomain (36-239-239-80.dynamic-ip.hinet.net. [36.239.239.80]) by smtp.gmail.com with ESMTPSA id l85sm63707pfk.55.2016.10.20.18.09.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 20 Oct 2016 18:09:31 -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: [RESEND][PATCH 2/2] PM / devfreq: exynos-ppmu: Remove unused mutex from struct exynos_ppmu Date: Fri, 21 Oct 2016 09:09:09 +0800 Message-Id: <1477012149-9928-2-git-send-email-axel.lin@ingics.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1477012149-9928-1-git-send-email-axel.lin@ingics.com> References: <1477012149-9928-1-git-send-email-axel.lin@ingics.com> 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 --- This patch was sent on https://patchwork.kernel.org/patch/9341097/ 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 */