From patchwork Wed Jul 20 10:37:42 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9239327 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 76B8B600CB for ; Wed, 20 Jul 2016 10:40:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 648472787C for ; Wed, 20 Jul 2016 10:40:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 54F8B2756B; Wed, 20 Jul 2016 10:40:11 +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 C980F2756B for ; Wed, 20 Jul 2016 10:40:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752642AbcGTKkK (ORCPT ); Wed, 20 Jul 2016 06:40:10 -0400 Received: from mout.kundenserver.de ([217.72.192.75]:49453 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752313AbcGTKkJ (ORCPT ); Wed, 20 Jul 2016 06:40:09 -0400 Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue101) with ESMTPA (Nemesis) id 0M7bux-1bAkJG0vCB-00xO75; Wed, 20 Jul 2016 12:38:13 +0200 From: Arnd Bergmann To: Jean Delvare , Guenter Roeck Cc: Arnd Bergmann , Thilo Cestonaro , linux-hwmon@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] hwmon: ftsteutates: add watchdog dependency Date: Wed, 20 Jul 2016 12:37:42 +0200 Message-Id: <20160720103809.2643157-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:Sbx9Yy1iZoamEQr3O0k8yX7lt74H7d5BEZNZx6IgA4iVmTNYMwO SAclN1FaKJ8YjSS2A0Jsjd5X+feTlU4rdhsbVkL4D5jTDxSQirBhhzg1a1sqBGx64Y2fsIc /bz4q7b6rc479t7ijXICEIND/MymdgWpP8mpE6q7Sc1oVipT1/+G7/THGHOLo+2utTnMyhj PX4EoUc42zDl0CAdHpPuw== X-UI-Out-Filterresults: notjunk:1; V01:K0:FmG53b+2kE8=:fhvR47aNXXW7hI3TSoeZeD fS1ipOLIqlCY2aXzartjlT4ZCl+i98ZIPvVKF7rP8+RO4qFVot9yXuuTL0bZHzXJAx5GLQ2HI A3XT6RQZs1ZSxmlEfamj1rqyUaf6lyxGqtF8cjBGtN2t8Tv/CUpGeLjga5z8ZG90Bc720iki+ 4nP/pM47/KAEm3wX/Vvw9dBzufdOlNItC8+38BWQ0iPhRQ9RTa/ya7MjMGR+8Q912K/b5+Dfc yYRe/kjPfjXRamcuu6NFSczmiqPfR4uKOhsC8aWihlNNLlAuqqOg5n2DgrUTIw30lKa3oSwNq 8yANpf9nMfow5LzBpONIml9Z3Qu/5fuftvRmQPyCWo89S73b8JSj0inDIz+WrdQDmMD5slrip uD4CAZyCv5iiCmv1fxrVbPCEdALT31rNUHc753jz2Xwgk+I4g/XN/a3DS/2CoXJUFUxi7icUu +aA4qKR6DIQuzauEG0gW5TBiRMU9/xj0XmVcy2rh+xyTvqD4aoQMPEQEl8vd7x7YRzmlxYge2 5zEs/TyjOgVRRfzsQHHLG2Smw7fGXp6rczL8bpvF7m0V1B8dfsjmAlb+L1e8J9CLRKUccDPAg HOfkNCq1iLpBZP6p1Xy4Oz1D74pswqkqhb/w/jeDmtudJdrpd2hghUH0B4dNH68ByYGQ0gk5D g17JNkdWvrvOebSaMzIhfT4ndbYLSG6+jUC/jUQXPTODGZwz7rxBoabWgCqj17od3/TM= Sender: linux-hwmon-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-hwmon@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The newly added fts "Teutates" hwmon chip contains a watchdog but fails to link when the watchdog subsystem is disabled: drivers/hwmon/built-in.o: In function `fts_remove': :(.text+0x161d8): undefined reference to `watchdog_unregister_device' drivers/hwmon/built-in.o: In function `fts_probe': :(.text+0x16cb4): undefined reference to `watchdog_register_device' This adds a Kconfig dependency in the same way that the other similar drivers have. Signed-off-by: Arnd Bergmann Fixes: ec9268ba1a96 ("hwmon: Add driver for FTS BMC chip "Teutates"") --- drivers/hwmon/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/hwmon/Kconfig b/drivers/hwmon/Kconfig index 15479eb15fa2..eaf2f916d48c 100644 --- a/drivers/hwmon/Kconfig +++ b/drivers/hwmon/Kconfig @@ -488,7 +488,8 @@ config SENSORS_FSCHMD config SENSORS_FTSTEUTATES tristate "Fujitsu Technology Solutions sensor chip Teutates" - depends on I2C + depends on I2C && WATCHDOG + select WATCHDOG_CORE help If you say yes here you get support for the Fujitsu Technology Solutions (FTS) sensor chip "Teutates" including support for