From patchwork Mon Jul 8 12:52:39 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 168635 Delivered-To: patch@linaro.org Received: by 2002:ac9:6410:0:0:0:0:0 with SMTP id r16csp6511849ock; Mon, 8 Jul 2019 05:53:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqyg6HSi/Cqs5oAmeSXDZDtI8/HROUpnhUBYXgYGLvZYl9K04EbZ0WVPY/TGmrHzsaQ/bLsR X-Received: by 2002:a63:d748:: with SMTP id w8mr23131347pgi.157.1562590381792; Mon, 08 Jul 2019 05:53:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562590381; cv=none; d=google.com; s=arc-20160816; b=qT6W4ztlX5lfOMaGqZh6Zi42wn6QO1GvGBQx1Z2utcEtrgJO5Ld56spt+RohiXH0Wc RAt+dpA4Ql37h4MNUk/o3ih/ObyURdlobtgk2m5fdTfbDeSFZp4XPZXMjMktAi3y3LOG MfT3Atq6Rb2PqwZpyLDc3dF4kvM4PrQ8UjwPxkquYAkiFnYrvPzr7DdlhqyVy2jBBaeO vAu/OiGNwppgptHjKINQ68IXkHCiwp8M+f8dPXiy9M816FCOHz1Hyc7PvzD22pb297bg 30eVvvPYjfAzFPPj/xhVR5XDa2OhyB7Dx7AFI6Lw8SO/vvSb0ABXIRknkZclpr2/yK1t j7Zw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=oaFPri8luX3S6GACWXlaiNGnbh4GaXoVzt60uEzCFak=; b=k+cCKuvc9Yz+GtPtbSqUmzx5nBvW+xWim/Juw+vuOm4VUXqXMqLGRWFusb6wFhz6qk 9tC3YHvVknravNNmUWXRc0OttoYyweBbUfa2OZxiauJGtmRCx9zXZBMQQauJKEnoS1xY jphTf3akQzayx3nm1w9sYcxp00YHVF4DairHrSSoosPFxVJb+ftpXkrTkIPBTm9uFHzJ VIhh8/RiZ+5a7BwbAGG0Z5lxPNcB5nXnPlgPQTwNIYVYHi561f1UTwyxHCRx6L62XYVs WgsShqbTrwtsNKly5xVfG8kocYN7qQ5oI+Lc25+CjJ4Olg0qiNU90H1f04YRC8x+OV4I Hikg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k8si17647739pgq.28.2019.07.08.05.53.01; Mon, 08 Jul 2019 05:53:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729278AbfGHMxB (ORCPT + 11 others); Mon, 8 Jul 2019 08:53:01 -0400 Received: from mout.kundenserver.de ([212.227.17.24]:60851 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728615AbfGHMxA (ORCPT ); Mon, 8 Jul 2019 08:53:00 -0400 Received: from threadripper.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.145]) with ESMTPA (Nemesis) id 1MHFwM-1hg19V14PQ-00DGIK; Mon, 08 Jul 2019 14:52:49 +0200 From: Arnd Bergmann To: Sebastian Reichel Cc: Arnd Bergmann , Nandor Han , Sebastian Reichel , Greg Kroah-Hartman , Thomas Gleixner , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] power: reset: nvmem-reboot-mode: add CONFIG_OF dependency Date: Mon, 8 Jul 2019 14:52:39 +0200 Message-Id: <20190708125247.3769080-1-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 MIME-Version: 1.0 X-Provags-ID: V03:K1:6SS/gq7IcyGSOSLVilP5dnwencoI/sgZf1Q7EHXRRfw4T53FImx fllqWL3XPVyjpEn+CJQB6vqES0JOQaHwOOCQd7bC/VI8gBI3QS/jyYGT3O4FoV52w4p3OJi wAKwyvDEQ2CNRU5O70xpuWAb/LXovIVRo+2+t1MbY8o0ha1LeLXJg1KQMWpM8inpG9KhNa9 tET+QfjwwoYGBFkCyt1Nw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1; V03:K0:VtOFB+BMYi0=:hzt+AkclHU2thQ/96Q3iF5 HeNLWY8WERSwAqx61XqJVJtDQ5b533C1HEYdMNT8KnO4n4Xipe7/FnHuGvm7RoW4lwMyH6BEc 3q8d3ZJQitOlsodPxVmKtSgkYGWWrurHWUcRbwdLqI8XXIazH0KUt5Mh4xzL7I/pgienngNy1 u+W+Mr5prj7jMZNAYX9U87VGIcKCXj+oRmSOTvxSpugmH69fUuZX4jYT6QWDjHPhcJOqHXPFd JtlbTRC4YG5K5l6AShTVbohH5p6GZmrQCG4/U5OT4pKHEfR6ZNvFxldAXWnJk0R3DhfDLUHlW JZsNhYVVYaHem05rcuwSDxvHizcbRlR3Wd7qIDrfUciwpy796Qy5e8Mx/XPn2hOPFCCBABWFE pF92c1gBDs9SAFqeItuCkxl9FRXkbEtOKVIRNhT5LJ3eJN+OrfPCPbW0vEY5BZt6tUlXEeFqn LdcUwAfN5RDlIJSzDEgw/TP46LOwJsDa3bE0+t0lZMmWPFaBMcuda/6BxDQSRMdlgq2MqvbJP 1cbn8vVec1kjiuN0vqPFdq8wKqHPdKFf/kbLXXPAMTFsU545Gpj1Td/zLvY815q2Ol1a7yu2I xxb/25n7ghWxWOb9mgXVdniAjItBQz8EQBOaFfs/9RjSRFHqavEfvOKzJ9kGKNcf7lJnKdJM+ n8I6P2IuyfZIr3b5Zld8UEeQdtTzyRWseGWnWkFoipUOYIM4iKinOUhCjsgbtgxKUKWFmXEPV 0JMZ9P5rcBQKI514HvRjY9VjcY6fnZDCPxAH1g== Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Without CONFIG_OF, we get a build failure in the reboot-mode implementation: drivers/power/reset/reboot-mode.c: In function 'reboot_mode_register': drivers/power/reset/reboot-mode.c:72:2: error: implicit declaration of function 'for_each_property_of_node'; did you mean 'for_each_child_of_node'? [-Werror=implicit-function-declaration] for_each_property_of_node(np, prop) { Add a Kconfig dependency like we have for the other users of CONFIG_REBOOT_MODE. Fixes: 7a78a7f7695b ("power: reset: nvmem-reboot-mode: use NVMEM as reboot mode write interface") Signed-off-by: Arnd Bergmann --- drivers/power/reset/Kconfig | 1 + 1 file changed, 1 insertion(+) -- 2.20.0 diff --git a/drivers/power/reset/Kconfig b/drivers/power/reset/Kconfig index 8dfb105db391..a564237278ff 100644 --- a/drivers/power/reset/Kconfig +++ b/drivers/power/reset/Kconfig @@ -248,6 +248,7 @@ config POWER_RESET_SC27XX config NVMEM_REBOOT_MODE tristate "Generic NVMEM reboot mode driver" + depends on OF select REBOOT_MODE help Say y here will enable reboot mode driver. This will