From patchwork Mon Jan 15 16:10:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 124541 Delivered-To: patch@linaro.org Received: by 10.46.64.148 with SMTP id r20csp717907lje; Mon, 15 Jan 2018 08:11:51 -0800 (PST) X-Google-Smtp-Source: ACJfBotCK/vzE0LQSWoJY/Rfe66p/PsVQWcYXQ0URk02SdnZTjABWLhoe9IEg2cBBUvbz5vwxAUc X-Received: by 10.98.133.93 with SMTP id u90mr16220545pfd.134.1516032711816; Mon, 15 Jan 2018 08:11:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516032711; cv=none; d=google.com; s=arc-20160816; b=Ncznw7NbtpqWc2HaApiBESm0Jyxbxab/3nX+t344cMnlLBO0WbgUnbNJ1cu9Yu20w4 Jf4bAWtOQMKy0oaG4E//yhGrTuInXJUetdTsZS3cHhjuh0pthnO9/5EmxMutSfU2vi2j j6bPwrOt1LxdBPjSwHaUKzF414xCMab6FrnfV8AAdgo5w8E8oKD3R9gKcc3ZX2A1AXKx Y7Fgh8ZC+8evS4i/whN1yzmeFHk6/KPI61Ciu7fXkwutvpOJsM+H3zxExrfgrX08p8c7 2WaBbteBhua+VR1+L6iUOiohk3HGQUOcaNjYKD2ybCruitmjxO9FgWZQD8IGLq30EgGI DBWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=b1IlB4Rbyl9+iIEbzFzQVr1VZ7+/JjSPRlBfGzF0rZE=; b=FID8pafT9TFVqIhmzKPOmQpfofYJcINWFocDA3untYjSc3P1UPjrHiZ1eBf41bQ0xG wiIM0am2b/GsoZIvui01NIbOrmTgEzk/XMHOrGmBrQjnciMFAcXBf6bunGTJQL+BESXB 9agfBFT/yy1epLvaLUtypCZ8qdlnvINShgjNBJTu01/KilFYx1tPHGgjV3D0BuhzRa8j 5IYkjNlOPDzs4p6tt5JhRJpbuHKNsAtynf42CsUlso7+qGERtdpNrtXvEksfSuEa/QCi n+RPQRvDEz3mFIOcz8RNA6o2biGgM4GkfGHVjQDtqnrCfTKmq4crM9m5MwEEC2HSJOyf 6c8w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-watchdog-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-watchdog-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 k7si394583pgp.153.2018.01.15.08.11.51 for ; Mon, 15 Jan 2018 08:11:51 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-watchdog-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-watchdog-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-watchdog-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754812AbeAOQLu (ORCPT ); Mon, 15 Jan 2018 11:11:50 -0500 Received: from mout.kundenserver.de ([217.72.192.75]:50260 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751293AbeAOQLu (ORCPT ); Mon, 15 Jan 2018 11:11:50 -0500 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue105 [212.227.15.145]) with ESMTPA (Nemesis) id 0LpNZt-1f4wOJ2o3Z-00fD34; Mon, 15 Jan 2018 17:10:54 +0100 From: Arnd Bergmann To: Lee Jones Cc: Pavel Machek , Guenter Roeck , Nikita Yushchenko , Andrey Smirnov , Arnd Bergmann , Wim Van Sebroeck , linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] watchdog: rave-sp: add NVMEM dependency Date: Mon, 15 Jan 2018 17:10:33 +0100 Message-Id: <20180115161052.684821-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:lviTU7acXELx/ynq7W+P9bQH3i9sT4XMibrR7IaAwUQKmmLbeFj +Mfb1a63BvHV31L5u5xsQJy4sOqLJGxhGpjqxCWTtfd1aDyjsXE43nc9ef+KWlrjNR5eWuJ hRAXWOvRlL4gSMqW35Kctkxc5CR2PKyq/cf8cfQeZfvqwtyBSAJH8T9FiisFvrazhmzB/Ip LEsn005NIO9ABAamUoEPQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:fqDkBhjFTcI=:IcSigNMVsft4hV2kSfAEy9 FJpJfR3UOs7Wo6eDWdXM3bqG4eC+NWsWgWurfc/qacNP3VYitY7INczd4JjVS00UHl39SBnY5 sgwzM1da+/Zie9M01OdB6drxo5R6+z9NTTVor32fg6tG4xUoJnTaQyrlG3uctnZkpCFs3uBWK uXP7FZQPazCDzHTXVL9pLYkXUAJ4YvY8bhQH9CyGFHYj08PzTJrPCB3m4OQMv+iIzJk1lJOqA vffqXm13VvGCs06ZMJislDhIm6mzZ5VVB0Pm9hkY3irz3Uw3+YmXSK9fTbyKVZnCQMgccLyEx BJiwgMOuECeSrNOxMP6pcYi1V015MwH3EQb3cF37YOSWKdUE8UybE3G16dygSESe3yi9HVwlg pN0LuGgsf6g4zIK+jMWd6Stn8csDTHUtANEgqtc7ITZraon/fXGLILOOt5tYVzIpcStRAGjTw anbbpWfPqZr2mtnxCRyvYxm935DiqjeqmHpEGIpRDrWtWzKvlAhdP1t7FYw0YPX4ySb1TFlH5 u3IjkGcMQVeIhVOW4nTj2b1P0jMlpDsKJZyftDpADuHcSxxpebbvQczN1A/nQ2i127Jzfvz1B hZijPWVtdwTn+Of+dPJwGX6AC1ioVnQxeuQKgIl0ygtN8ftVlHZ7GbVeXHca412XBG0h3mM+R ZnjQKWgGDOtWGb8eNcj1mxlG8IQFLzlTxBhN/82nZQtUr8cgQO7JsHZH9QmI7kddbdshQAIRB Hj+Ge1aSVR/XOBrg4qBeteUv/bMEJfG5GPp3Rg== Sender: linux-watchdog-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-watchdog@vger.kernel.org We can build this driver with or without NVMEM, but not built-in when NVMEM is a loadable module: drivers/watchdog/rave-sp-wdt.o: In function `rave_sp_wdt_probe': rave-sp-wdt.c:(.text+0x27c): undefined reference to `nvmem_cell_get' rave-sp-wdt.c:(.text+0x290): undefined reference to `nvmem_cell_read' rave-sp-wdt.c:(.text+0x2c4): undefined reference to `nvmem_cell_put' This adds a Kconfig dependency to enforce that. Fixes: c3bb33345721 ("watchdog: Add RAVE SP watchdog driver") Signed-off-by: Arnd Bergmann --- drivers/watchdog/Kconfig | 1 + 1 file changed, 1 insertion(+) -- 2.9.0 -- To unsubscribe from this list: send the line "unsubscribe linux-watchdog" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Reviewed-by: Guenter Roeck diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig index 34d1c6851fa7..c09369f80989 100644 --- a/drivers/watchdog/Kconfig +++ b/drivers/watchdog/Kconfig @@ -226,6 +226,7 @@ config ZIIRAVE_WATCHDOG config RAVE_SP_WATCHDOG tristate "RAVE SP Watchdog timer" depends on RAVE_SP_CORE + depends on NVMEM || !NVMEM select WATCHDOG_CORE help Support for the watchdog on RAVE SP device.