From patchwork Fri Jul 18 14:09:53 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Punit Agrawal X-Patchwork-Id: 4585141 Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id D5F40C0515 for ; Fri, 18 Jul 2014 14:11:57 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 27FE320160 for ; Fri, 18 Jul 2014 14:11:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 39021201C8 for ; Fri, 18 Jul 2014 14:11:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030432AbaGROLi (ORCPT ); Fri, 18 Jul 2014 10:11:38 -0400 Received: from fw-tnat.cambridge.arm.com ([217.140.96.21]:52300 "EHLO cam-smtp0.cambridge.arm.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S934609AbaGROLg (ORCPT ); Fri, 18 Jul 2014 10:11:36 -0400 Received: from e102309-lin (e102309-lin.cambridge.arm.com [10.1.195.140]) by cam-smtp0.cambridge.arm.com (8.13.8/8.13.8) with SMTP id s6IEAKSC030771; Fri, 18 Jul 2014 15:10:20 +0100 Received: by e102309-lin (sSMTP sendmail emulation); Fri, 18 Jul 2014 15:10:20 +0100 From: Punit Agrawal To: linux-pm@vger.kernel.org, linux-samsung-soc@vger.kernel.org Cc: orjan.eide@arm.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, MyungJoo Ham , Kyungmin Park Subject: [PATCH 1/2] PM / devfreq: Export helper functions for drivers Date: Fri, 18 Jul 2014 15:09:53 +0100 Message-Id: <1405692594-19352-2-git-send-email-punit.agrawal@arm.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1405692594-19352-1-git-send-email-punit.agrawal@arm.com> References: <1405692594-19352-1-git-send-email-punit.agrawal@arm.com> MIME-Version: 1.0 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Ørjan Eide These functions are indended for use by drivers and should be available also when the driver is built as a module. Cc: MyungJoo Ham Cc: Kyungmin Park Signed-off-by: Ørjan Eide --- drivers/devfreq/devfreq.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/devfreq/devfreq.c b/drivers/devfreq/devfreq.c index 9f90369..30b538d8 100644 --- a/drivers/devfreq/devfreq.c +++ b/drivers/devfreq/devfreq.c @@ -1119,6 +1119,7 @@ struct dev_pm_opp *devfreq_recommended_opp(struct device *dev, return opp; } +EXPORT_SYMBOL(devfreq_recommended_opp); /** * devfreq_register_opp_notifier() - Helper function to get devfreq notified @@ -1142,6 +1143,7 @@ int devfreq_register_opp_notifier(struct device *dev, struct devfreq *devfreq) return ret; } +EXPORT_SYMBOL(devfreq_register_opp_notifier); /** * devfreq_unregister_opp_notifier() - Helper function to stop getting devfreq @@ -1168,6 +1170,7 @@ int devfreq_unregister_opp_notifier(struct device *dev, struct devfreq *devfreq) return ret; } +EXPORT_SYMBOL(devfreq_unregister_opp_notifier); static void devm_devfreq_opp_release(struct device *dev, void *res) {