From patchwork Thu Aug 4 10:32:33 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chanwoo Choi X-Patchwork-Id: 9263369 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 410E96048B for ; Thu, 4 Aug 2016 10:33:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3237028333 for ; Thu, 4 Aug 2016 10:33:00 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 24A91283AC; Thu, 4 Aug 2016 10:33:00 +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.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI 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 B855628333 for ; Thu, 4 Aug 2016 10:32:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753676AbcHDKcp (ORCPT ); Thu, 4 Aug 2016 06:32:45 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:35536 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750983AbcHDKco (ORCPT ); Thu, 4 Aug 2016 06:32:44 -0400 Received: from epcpsbgr2.samsung.com (u142.gpu120.samsung.co.kr [203.254.230.142]) by mailout2.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTP id <0OBD017D7RYHV570@mailout2.samsung.com>; Thu, 04 Aug 2016 19:32:41 +0900 (KST) Received: from epcpsbgm1new.samsung.com ( [172.20.52.112]) by epcpsbgr2.samsung.com (EPCPMTA) with SMTP id EB.92.27902.9C913A75; Thu, 4 Aug 2016 19:32:41 +0900 (KST) X-AuditID: cbfee68e-f79cb6d000006cfe-5e-57a319c963ae Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm1new.samsung.com (EPCPMTA) with SMTP id E1.60.05218.9C913A75; Thu, 4 Aug 2016 19:32:41 +0900 (KST) Received: from chan.10.32.193.11 ([10.113.62.212]) by mmp1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0OBD00F8ORYHAM10@mmp1.samsung.com>; Thu, 04 Aug 2016 19:32:41 +0900 (KST) From: Chanwoo Choi To: linux-pm@vger.kernel.org Cc: myungjoo.ham@samsung.com, kyungmin.park@samsung.com, linux-kernel@vger.kernel.org, Lin Huang , stable@vger.kernel.org, Chanwoo Choi Subject: [PATCH v2] PM / devfreq: event: remove duplicate devfreq_event_get_drvdata() Date: Thu, 04 Aug 2016 19:32:33 +0900 Message-id: <1470306753-5721-1-git-send-email-cw00.choi@samsung.com> X-Mailer: git-send-email 1.8.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrFLMWRmVeSWpSXmKPExsWyRsSkQPek5OJwg6YPYhbXvzxntfix4RSz xdmmN+wWl3fNYbP43HuE0eJ24wo2iwUbHzE6sHv8nbWfxaNvyypGj8+b5AKYo7hsUlJzMstS i/TtErgyWo/+Yy54yVHx99xEpgbGI+xdjJwcEgImEqcu7GSFsMUkLtxbz9bFyMUhJLCCUWJX 0wk2mKI9b3cwQySWMkrMvbeBBcL5wihx9eFGsHY2AS2J/S9ugHWICMhITL2ynxWkiFlgG6PE hvM/mEASwgLhEjvmXWUGsVkEVCUO33kL1sAr4CJx7foUZoh1chIf9jyCuu87m8SFHxUQ9QIS 3yYfAtrMARSXldh0AKpcUuLgihssExgFFzAyrGIUTS1ILihOSi8y0itOzC0uzUvXS87P3cQI DNLT/5717WC8ecD6EKMAB6MSDy9H+qJwIdbEsuLK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MMC051Tp1xo0TdPZOXc/a0mhnlvgavx s+t6lubzGgr2KbEUZyQaajEXFScCABNN5eubAgAA DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected 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 From: Lin Huang there define two devfreq_event_get_drvdata() function in devfreq-event.h when disable CONFIG_PM_DEVFREQ_EVENT, it will lead to build fail. So remove devfreq_event_get_drvdata() function. Fixes: f262f28c1470 ("PM / devfreq: event: Add devfreq_event class") Cc: stable@vger.kernel.org Signed-off-by: Lin Huang Signed-off-by: Chanwoo Choi --- Changes from v1: - Add include/linux/devfreq-event.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/include/linux/devfreq-event.h b/include/linux/devfreq-event.h index 0a83a1e648b0..4db00b02ca3f 100644 --- a/include/linux/devfreq-event.h +++ b/include/linux/devfreq-event.h @@ -148,11 +148,6 @@ static inline int devfreq_event_reset_event(struct devfreq_event_dev *edev) return -EINVAL; } -static inline void *devfreq_event_get_drvdata(struct devfreq_event_dev *edev) -{ - return ERR_PTR(-EINVAL); -} - static inline struct devfreq_event_dev *devfreq_event_get_edev_by_phandle( struct device *dev, int index) {