From patchwork Wed Nov 21 08:25:51 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: MyungJoo Ham X-Patchwork-Id: 1778871 Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id D14353FC23 for ; Wed, 21 Nov 2012 08:25:56 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752391Ab2KUIZ4 (ORCPT ); Wed, 21 Nov 2012 03:25:56 -0500 Received: from mailout4.samsung.com ([203.254.224.34]:44525 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751634Ab2KUIZz (ORCPT ); Wed, 21 Nov 2012 03:25:55 -0500 Received: from epcpsbgm1.samsung.com (epcpsbgm1 [203.254.230.26]) by mailout4.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0MDT008VFWQW5ZW0@mailout4.samsung.com> for linux-pm@vger.kernel.org; Wed, 21 Nov 2012 17:25:53 +0900 (KST) Received: from epcpsbgm1.samsung.com ( [203.254.230.45]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id AD.9E.01231.1109CA05; Wed, 21 Nov 2012 17:25:53 +0900 (KST) X-AuditID: cbfee61a-b7fa66d0000004cf-8a-50ac901144af Received: from epmmp2 ( [203.254.227.17]) by epcpsbgm1.samsung.com (EPCPMTA) with SMTP id 3D.9E.01231.1109CA05; Wed, 21 Nov 2012 17:25:53 +0900 (KST) Received: from localhost.localdomain ([10.90.51.65]) by mmp2.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0MDT009QNWR3LE40@mmp2.samsung.com> for linux-pm@vger.kernel.org; Wed, 21 Nov 2012 17:25:53 +0900 (KST) From: MyungJoo Ham To: linux-pm@vger.kernel.org Cc: rjw@sisk.pl, nm@ti.com, myungjoo.ham@gmail.com Subject: [PATCH] PM / devfreq: remove compiler error when a governor is module Date: Wed, 21 Nov 2012 17:25:51 +0900 Message-id: <1353486351-7216-1-git-send-email-myungjoo.ham@samsung.com> X-Mailer: git-send-email 1.7.5.4 DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrMLMWRmVeSWpSXmKPExsVy+t8zXV3BCWsCDFY2aVt87j3C6MDo8XmT XABjFJdNSmpOZllqkb5dAlfG3v5fzAXT2Ctu7FzP2sDYwdbFyMkhIWAice71ayhbTOLCvfVA NheHkMAyRom1M9+xwxT1rT3MCmILCUxnlLj6tgiiaCGTxLYZ68G62QR0JbZuuMsCYosIyEhM vbIfrIFZwEji5IonYIOEBfwknjUtYgKxWQRUJZ5+2Adm8wq4S7T/nAm1TEHi15FVrBA1AhLf Jh8CmskBFJeV2HSAGWSvhMAWNokdDy+wQNRLShxccYNlAqPgAkaGVYyiqQXJBcVJ6bmGesWJ ucWleel6yfm5mxghISW1g3Flg8UhRgEORiUe3o1rVwcIsSaWFVfmHmKU4GBWEuFlkF8TIMSb klhZlVqUH19UmpNafIjRB+iSicxSosn5wHDPK4k3NDYwNjS0NDQztTQ1wCGsJM7b7JESICSQ nliSmp2aWpBaBDOOiYNTqoHRQO8K8/7oh86cVnv7fmjod98MqBQ/tCGVc8ur/td3X60yVn1Y xTUjUHji8j35Hd+Zd4tW/T3PuFtHzqD8zrJLYle7TM4camOJfXBw748TwrOc/9QmCzM66gh7 ftvc7xV7MOHSzij+es7sFR6nOP3Vn33WronoYb5+rdRlz/y8ixtXnzis/m+/EktxRqKhFnNR cSIASxIQGFYCAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrELMWRmVeSWpSXmKPExsVy+t9jQV3BCWsCDA6fVbP43HuE0YHR4/Mm uQDGqAZGm4zUxJTUIoXUvOT8lMy8dFsl7+B453hTMwNDXUNLC3MlhbzE3FRbJRefAF23zByg qUoKZYk5pUChgMTiYiV9O0wTQkPcdC1gGiN0fUOC4HqMDNBAwjrGjL39v5gLprFX3Ni5nrWB sYOti5GTQ0LARKJv7WFWCFtM4sK99WBxIYHpjBJX3xZ1MXIB2QuZJLbNgEiwCehKbN1wlwXE FhGQkZh6ZT9YM7OAkcTJFU/YQWxhAT+JZ02LmEBsFgFViacf9oHZvALuEu0/Z7JDLFOQ+HVk FesERu4FjAyrGEVTC5ILipPScw31ihNzi0vz0vWS83M3MYID9pnUDsaVDRaHGAU4GJV4eDeu XR0gxJpYVlyZe4hRgoNZSYSXQX5NgBBvSmJlVWpRfnxRaU5q8SFGH6DtE5mlRJPzgdGUVxJv aGxiZmRpZGZsYm5sjENYSZy32SMlQEggPbEkNTs1tSC1CGYcEwenVAPjnpyv7HmTD99k/C/W yKTHLtb4x0za32GC0QvN24d5r34wKLDmXtzqNunLG4byjbZnc169WeawZPezS0ZHBT4nnTiv czrp3I2fBWvcpbuNzNOmrD038Z9w05Or06++t5XasPNDgr5L/ouw2Mzfm9Y9eTcxTnWLv1C5 ic+E4L6IoNYdP7eUndy9WomlOCPRUIu5qDgRAKiUF1+FAgAA X-CFilter-Loop: Reflected Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org With the intruction of patch, eff607fdb1f787da1fedf46ab6e64adc2afd1c5a, it became possible to include a governor as a module. Thus the #ifdef statement for a governor should become #if IS_ENABLED. Signed-off-by: MyungJoo Ham --- include/linux/devfreq.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/linux/devfreq.h b/include/linux/devfreq.h index 235248c..e83ef39 100644 --- a/include/linux/devfreq.h +++ b/include/linux/devfreq.h @@ -192,7 +192,7 @@ extern int devfreq_register_opp_notifier(struct device *dev, extern int devfreq_unregister_opp_notifier(struct device *dev, struct devfreq *devfreq); -#ifdef CONFIG_DEVFREQ_GOV_SIMPLE_ONDEMAND +#if IS_ENABLED(CONFIG_DEVFREQ_GOV_SIMPLE_ONDEMAND) /** * struct devfreq_simple_ondemand_data - void *data fed to struct devfreq * and devfreq_add_device