From patchwork Thu Aug 4 06:01:48 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: huang lin X-Patchwork-Id: 9262717 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 D2D5D60754 for ; Thu, 4 Aug 2016 06:02:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C2F7627FA6 for ; Thu, 4 Aug 2016 06:02:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B78A12810E; Thu, 4 Aug 2016 06:02:24 +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=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 549C827FA6 for ; Thu, 4 Aug 2016 06:02:23 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bVBjZ-0004oi-EE; Thu, 04 Aug 2016 06:02:21 +0000 Received: from mail-pa0-f65.google.com ([209.85.220.65]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bVBjW-0004lE-Gh for linux-rockchip@lists.infradead.org; Thu, 04 Aug 2016 06:02:20 +0000 Received: by mail-pa0-f65.google.com with SMTP id cf3so15872255pad.2 for ; Wed, 03 Aug 2016 23:01:57 -0700 (PDT) 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=ku9zOgUlHvOborYd6npjor06W5SuKGYRFWSUNcaAwwc=; b=PRS3FBHaOWN63Wuwv6+HodtsWbBc+1wzwb9SnHJ6y8qvMmKJTtIMLMIRUb4tD1MD2+ dhyOMSEf1fRwX2wubAIo+1UMi2k4yB9B9HF3beRoKqm0M3pKZCiNklAmQRSiX+5G/D8r m/6G0ZpknmYfYcDIDy3OD4jAEPvkuuGs8m+37UtZiGezVfJ+buYLS7S+6uvF8P3YKGH4 YkIRl+IEFnAfT6N0pPTKnNpZd8ot8X1iA37raQkr4ylriTnJzEpxYUX2BeUxJA12H3r5 GTCYIsezLr9Nogd9nnU4uulKMQ2ZLfCoTxW6+qooz1HDFVDSfh0LsalQzCwB8xuDp6cG PBvg== X-Gm-Message-State: AEkoout1xUFuexREJ6VCQl85T6SkGH58BnCyAT27UXcVklh3lAoqUzx3vAsLP4jFqSvM6Q== X-Received: by 10.66.10.168 with SMTP id j8mr19553229pab.3.1470290517398; Wed, 03 Aug 2016 23:01:57 -0700 (PDT) Received: from localhost.localdomain ([103.29.142.67]) by smtp.gmail.com with ESMTPSA id t80sm16804698pfj.38.2016.08.03.23.01.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 03 Aug 2016 23:01:56 -0700 (PDT) From: Lin Huang To: cw00.choi@samsung.com Subject: [PATCH] PM / devfreq: event: remove duplicate devfreq_event_get_drvdata() Date: Thu, 4 Aug 2016 14:01:48 +0800 Message-Id: <1470290508-19178-1-git-send-email-hl@rock-chips.com> X-Mailer: git-send-email 1.9.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160803_230218_679255_67893C30 X-CRM114-Status: UNSURE ( 6.93 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-rockchip@lists.infradead.org, Lin Huang , linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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. Signed-off-by: Lin Huang Acked-by: Chanwoo Choi --- 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 0a83a1e..4db00b0 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) {