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: 9387791 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 AD3D860762 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 AA8E529A48 for ; Fri, 21 Oct 2016 01:09:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9F06329AAC; 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 1F20A29ACB for ; Fri, 21 Oct 2016 01:09:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754603AbcJUBJf (ORCPT ); Thu, 20 Oct 2016 21:09:35 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:36727 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752925AbcJUBJd (ORCPT ); Thu, 20 Oct 2016 21:09:33 -0400 Received: by mail-pf0-f196.google.com with SMTP id r16so6951227pfg.3 for ; Thu, 20 Oct 2016 18:09: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: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=Ny+yZXB4sZtJ2yp4Y68PfDOPUjof3Iz7YNqNFIhQMlYoVtp6T/HVrWEpiU3Kzhk+Gm xzz1tdCOm9sLCCNQtrotwXpboOGsbnx2N70GmZDkoQgbYg9jNYrtJ2zSD1f6j13kP42t BkpqiBAPr11ByfWjMZ5kOVq1n9HnDNUKOkhi5XfUtlrYEtvzHLHWSyeXU+AmdD1dXJfR dubcww3eMmI/oGh9v6GIwyIZcTS9i/kbMfyBXGLdXUdjsIdFOimqxHEzUtX0gfsA6XSo edr0lp906VZFa6EcpLLUDcsfRHDBERbYCkB4/tNlA6wNlZm9G5xxgMtqiLtR3IhxDDDH wJ4g== X-Gm-Message-State: AA6/9RnOpxmIaIhrBoEpvz25RrpaQWE3NE3u3jYeFqoWIzCVVtI6tB0FlYNJ39+TyCgWQw== 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-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 --- 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 */