From patchwork Sun Aug 7 13:14:21 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Yan X-Patchwork-Id: 9266351 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 C3D866075A for ; Sun, 7 Aug 2016 13:24:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A67922621F for ; Sun, 7 Aug 2016 13:24:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 96D4327F8F; Sun, 7 Aug 2016 13:24:16 +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 4A7352621F for ; Sun, 7 Aug 2016 13:24:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751672AbcHGNYN (ORCPT ); Sun, 7 Aug 2016 09:24:13 -0400 Received: from regular1.263xmail.com ([211.150.99.132]:55711 "EHLO regular1.263xmail.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751646AbcHGNYN (ORCPT ); Sun, 7 Aug 2016 09:24:13 -0400 X-Greylist: delayed 426 seconds by postgrey-1.27 at vger.kernel.org; Sun, 07 Aug 2016 09:24:12 EDT Received: from andy.yan?rock-chips.com (unknown [192.168.167.172]) by regular1.263xmail.com (Postfix) with SMTP id CB8999370; Sun, 7 Aug 2016 21:16:53 +0800 (CST) X-263anti-spam: KSV:0; X-MAIL-GRAY: 0 X-MAIL-DELIVERY: 1 X-KSVirus-check: 0 X-ABS-CHECKED: 4 X-ADDR-CHECKED: 0 Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.263.net (Postfix) with ESMTP id B4EBA308; Sun, 7 Aug 2016 21:16:54 +0800 (CST) X-RL-SENDER: andy.yan@rock-chips.com X-FST-TO: sre@kernel.org X-SENDER-IP: 120.39.37.154 X-LOGIN-NAME: andy.yan@rock-chips.com X-UNIQUE-TAG: <5f8c717674443d50f31cb81d76da1f3d> X-ATTACHMENT-NUM: 0 X-SENDER: yxj@rock-chips.com X-DNS-TYPE: 7 Received: from localhost.localdomain (154.37.39.120.broad.fz.fj.dynamic.163data.com.cn [120.39.37.154]) by smtp.263.net (Postfix) whith ESMTP id 841690Y62O; Sun, 07 Aug 2016 21:16:55 +0800 (CST) From: Andy Yan To: sre@kernel.org Cc: richard@nod.at, matthias.bgg@gmail.com, moritz.fischer@ettus.com, fengguang.wu@intel.com, alexandre.belloni@free-electrons.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, dbaryshkov@gmail.com, k.kozlowski@samsung.com, dwmw2@infradead.org, nicolas.ferre@atmel.com, Andy Yan Subject: [PATCH] power: reset: reboot mode: fix build error of missing ioremap/iounmap on UM Date: Sun, 7 Aug 2016 21:14:21 +0800 Message-Id: <1470575661-22325-1-git-send-email-andy.yan@rock-chips.com> X-Mailer: git-send-email 2.7.4 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 Add missing HAS_IOMEM dependency for MFD_SYSCON to fix the um-allyesconfig build error: drivers/mfd/syscon.c: In function 'of_syscon_register': drivers/mfd/syscon.c:67:9: error: implicit declaration of function 'ioremap' [-Werror=implicit-function-declaration] base = ioremap(res.start, resource_size(&res)); ^ drivers/mfd/syscon.c:67:7: warning: assignment makes pointer from integer without a cast [-Wint-conversion] base = ioremap(res.start, resource_size(&res)); ^ drivers/mfd/syscon.c:109:2: error: implicit declaration of function 'iounmap' [-Werror=implicit-function-declaration] iounmap(base); ^ Signed-off-by: Andy Yan --- drivers/power/reset/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/power/reset/Kconfig b/drivers/power/reset/Kconfig index 7053abc..1388be3 100644 --- a/drivers/power/reset/Kconfig +++ b/drivers/power/reset/Kconfig @@ -190,6 +190,7 @@ config REBOOT_MODE config SYSCON_REBOOT_MODE tristate "Generic SYSCON regmap reboot mode driver" depends on OF + depends on HAS_IOMEM select REBOOT_MODE select MFD_SYSCON help