Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp414262lqh; Tue, 7 May 2024 03:08:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXlAx03sEmwlT7Eb/Xd/le0Y23/+DuX+oHphzDUmRTzeF+mT7DvCrD6wX+NU5R+oxq8AUoP24nWtjBGIJRj3neZNNYrp2fnyWQs2mLvlg== X-Google-Smtp-Source: AGHT+IFbJdi9r0fJMSb0OFqtZBj9OJ595mo4TOaNb7d6dtpQoDYChiYjP4rdar/YCNBuMTax/kLG X-Received: by 2002:a67:e3ba:0:b0:47e:d83:3bab with SMTP id j26-20020a67e3ba000000b0047e0d833babmr14771648vsm.6.1715076516683; Tue, 07 May 2024 03:08:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715076516; cv=pass; d=google.com; s=arc-20160816; b=eJYErO063w+hH0Ji/fHDA7GEke6YF2XktNHmqxZA4J3/G2L6qklvoYONVE4+xxvRVQ Urt+LQw852yRgnvmWKI8RtvljJz5gXn92ke8w9kP/sjbcTP67Kqyofp/X2aKBUAgsNER f9uCzXQbJv1VdFoaFdM9wQG2/VEbsjOskFPEo8fhkJnxQHke20Tg10eOLXVzCzYEHCuO cEfIhKn6ZyCcZHaeDodPWAZbbvBBwTkfFxI6n5hEeumSUQCrhXMaL8xkZhpnbj3h7YJM HlfvjFbYRfLKrNszgivJ6xsKU36UXHwPM1XIqbF3bdxIqBhkuPJCXq/SGa4G2+qRjdGY RbZw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=JAgv3lrWriDIUmWVpxcxdFkTUJiivNqXwLhev1ts2Iw=; fh=8AeEz7P60bv2QjkbjycOsdoSjzrdq8PPJOwvNIi7HDo=; b=xK+yVIAVgCMb7a94JXGnUcWzh0L0nF8UZqlZ2aCtUEUYnmooMRGG6VsF+BWAH6RCAA Q93YAIZ7bHy8jp7gOpSMKEnmlXfYJgXS3w/VstcEZ9j4p1UpwoftJRFNbHc7xss7Bt5n k/lrvXdSTMfu5XcbsMLI9txGGh7jU1zz0+YK+U8M2pN3mPTLr/a4ZhhppZQdo3NTWdAt LsZ6kA3wfBBGJmw3BSzXfmrCU8wuzfPitG6hQehdTAhVND3gX2t3Ub2ZYs6IBDPs2yyB q2Aphumg58wGzvsOXHD7Z3BeiheR+A4dclF99RzVbH381tRWW7E/MaH+dDkoZnDaLcpY D7AA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-171068-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171068-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id m12-20020ad45dcc000000b0069922e9d38bsi11112649qvh.383.2024.05.07.03.08.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 03:08:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-171068-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-171068-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171068-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 694E61C20CB7 for ; Tue, 7 May 2024 10:08:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B027D14F12C; Tue, 7 May 2024 10:08:19 +0000 (UTC) Received: from weierstrass.telenet-ops.be (weierstrass.telenet-ops.be [195.130.137.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0ACE614E2FE for ; Tue, 7 May 2024 10:08:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.130.137.81 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715076499; cv=none; b=S9Lm4ihiWCF5BanqKdZcHB/8bNk1oBgE+Npnhv4zXlqEkWwiM4UvRAbQJBC95u9PCbguLAYgS0S0+an5QKjzD2fu1Nj8Y5gq8X0X9xKJUQiGz+jl1NTJBnXGzLYBZeVu390fYOg9r5Cml+RkOfqtNpb7ivtv6BBsIOxveSH/Gqk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715076499; c=relaxed/simple; bh=f4d9Fh8eoRz2byJ+fQ9qpBft/VuDQjnlCNF03HfpbmI=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=GYXkl/yy7iz2aYIyJGjeWMjC/nkbEAYImQo5/6uUzUUB3zt3wsXXBqbu1u9lMLWWE+cFLF8yVH3rWwmSOWxYeQNoENGvTxP+/BmfY7R+/uCmaXAfamsF3O+ItQzffRf26Cc1zNMdmzKgMQs05+SQJlrHzmob8Dm7l+qXFdbH+Jk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=glider.be; spf=none smtp.mailfrom=linux-m68k.org; arc=none smtp.client-ip=195.130.137.81 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=glider.be Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux-m68k.org Received: from andre.telenet-ops.be (andre.telenet-ops.be [IPv6:2a02:1800:120:4::f00:15]) by weierstrass.telenet-ops.be (Postfix) with ESMTPS id 4VYYr901Pvz4x0K9 for ; Tue, 07 May 2024 12:08:09 +0200 (CEST) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed80:398:903d:bd3d:c943]) by andre.telenet-ops.be with bizsmtp id LA802C00409Bz8w01A801o; Tue, 07 May 2024 12:08:01 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1s4Hj5-00C50P-TE; Tue, 07 May 2024 12:08:00 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1s4Hjs-00DhCc-1x; Tue, 07 May 2024 12:08:00 +0200 From: Geert Uytterhoeven To: Mark Pearson , David Ober , Wim Van Sebroeck , Guenter Roeck Cc: linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH] watchdog: LENOVO_SE10_WDT should depend on X86 && DMI Date: Tue, 7 May 2024 12:07:56 +0200 Message-Id: <58005595a05ef803b454b78d3ae9b8ee0675bd5d.1715076440.git.geert+renesas@glider.be> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The Lenovo SE10 watchdog is only present on Lenovo ThinkEdge SE10 platforms, which are based on Intel Atom SoCs, and its driver relies on DMI tables. Hence add dependencies on X86 && DMI, to prevent asking the user about this driver when configuring a kernel without Intel Atom or DMI support. While at it, fix the odd indentation (spaces instead of TABs). Fixes: 1f6602c8ed1eccac ("watchdog: lenovo_se10_wdt: Watchdog driver for Lenovo SE10 platform") Signed-off-by: Geert Uytterhoeven --- drivers/watchdog/Kconfig | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig index 24dfecbb30157fff..f002e9627c076f1f 100644 --- a/drivers/watchdog/Kconfig +++ b/drivers/watchdog/Kconfig @@ -255,14 +255,15 @@ config GPIO_WATCHDOG_ARCH_INITCALL If in doubt, say N. config LENOVO_SE10_WDT - tristate "Lenovo SE10 Watchdog" - select WATCHDOG_CORE - help - If you say yes here you get support for the watchdog - functionality for the Lenovo SE10 platform. - - This driver can also be built as a module. If so, the module - will be called lenovo-se10-wdt. + tristate "Lenovo SE10 Watchdog" + depends on (X86 && DMI) || COMPILE_TEST + select WATCHDOG_CORE + help + If you say yes here you get support for the watchdog + functionality for the Lenovo SE10 platform. + + This driver can also be built as a module. If so, the module + will be called lenovo-se10-wdt. config MENF21BMC_WATCHDOG tristate "MEN 14F021P00 BMC Watchdog" -- 2.34.1