Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp5358603imm; Tue, 21 Aug 2018 10:20:01 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyCfwxnhniUCqBaRT2dexhNPsU9DMzdl/jazo54+7bpPt4gLD52sE7YZDhJAyzE/CvhSpaj X-Received: by 2002:a17:902:b20d:: with SMTP id t13-v6mr10264351plr.107.1534872001124; Tue, 21 Aug 2018 10:20:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534872001; cv=none; d=google.com; s=arc-20160816; b=wiRO8HPgx0ovEhq2u/VSURHo1/8Th3tidjgRhgu4Y5QLJ3JTrjrSsQ0o4Qgjao8+tB RRSKGqTpbpmV5T75grzo/W9vXKs62iVbdZ7gAelcV7hBCJRsVm37CPwu/Ty0czSOMT5J j5vct77Jx6cwqrcqmuyCL423+oC1oJYiOKgzJCAqKB/EhofrgT+w9zNJ6TGicLLZtfCF lh/iOKwPkTfBuiJhz2QOjjF1Ogo6/+yti8JPIWG3FB1wIWbltnCunVA8+7F7R5ow359t qQx7hDgyoXThJ6lMgJJnrALoQLYjE1QqdYaYU+HSvc1ijJ58qUmcSIlrsKauxDeNcmGD 1WXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=mkES4HvHNmq/RQeQEUAvdqQgOvdU/injB2ZI+MGVpdY=; b=jshdQL2IfJL+TYJ8TZAzdlzLDPjaAFEUjXvYdRCl7sHLKoo1UHV1yimV6xAZBAMb4N tjF1JiKK2Xr0A/zRNwWm92pdSS7ibMGVCyXld+nDENMR43A3J5yJ/wHpJO56QvYD+RWb SyfkYbeS9QZDS1dwVzbCTb67ef7DMhkFuAguTSW11LpX5u1tDRfUnRoSwbBWhtC4byqx zYM2dVx/NO7aCqMc11WJl418QZkZjHdTL3i6ETrBuIUX7aHafR12DPV04CDc4FxD/oWq ELlYeZXZ2AhlkH4opJ6PD6QBnnpO44BdXu/Eh7yTWxbPjOqweO4tFv5AL5wYublbaYw7 ctRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@crapouillou.net header.s=mail header.b=DOsnB50z; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v34-v6si13119870plg.491.2018.08.21.10.19.45; Tue, 21 Aug 2018 10:20:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@crapouillou.net header.s=mail header.b=DOsnB50z; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728217AbeHUUiL (ORCPT + 99 others); Tue, 21 Aug 2018 16:38:11 -0400 Received: from outils.crapouillou.net ([89.234.176.41]:33106 "EHLO crapouillou.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728050AbeHUUiK (ORCPT ); Tue, 21 Aug 2018 16:38:10 -0400 From: Paul Cercueil To: Thomas Gleixner , Daniel Lezcano , Rob Herring , Thierry Reding , Mark Rutland , Ralf Baechle , Paul Burton , Jonathan Corbet Cc: od@zcrc.me, Mathieu Malaterre , linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-watchdog@vger.kernel.org, linux-mips@linux-mips.org, linux-doc@vger.kernel.org, linux-clk@vger.kernel.org, Paul Cercueil Subject: [PATCH v7 11/24] watchdog: jz4740: Drop dependency on MACH_JZ47xx, use COMPILE_TEST Date: Tue, 21 Aug 2018 19:16:22 +0200 Message-Id: <20180821171635.22740-12-paul@crapouillou.net> In-Reply-To: <20180821171635.22740-1-paul@crapouillou.net> References: <20180821171635.22740-1-paul@crapouillou.net> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1534871827; bh=mkES4HvHNmq/RQeQEUAvdqQgOvdU/injB2ZI+MGVpdY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=DOsnB50zQffCwaL2+ULRxbEGqaOc6i5eToxxVn11a4e3pnAAvvwPbu4n8cx6H48DG6/7vNDDWfF1kX6CHKfyQCNhcVah295N2ncjyKqP7+nJXIdAthhWwGD579R/MStoDXy21PGR8wQAmX7HZuIn0geXve+/n490Cx85GY0klPA= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Depending on MACH_JZ47xx prevent us from creating a generic kernel that works on more than one MIPS board. Instead, we just depend on MIPS being set. On other architectures, this driver can still be built, thanks to COMPILE_TEST. This is used by automated tools to find bugs, for instance. Signed-off-by: Paul Cercueil Reviewed-by: Guenter Roeck --- Notes: v5: New patch v6: No change v7: No change drivers/watchdog/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig index 834222abbbdb..13a46cfa69b0 100644 --- a/drivers/watchdog/Kconfig +++ b/drivers/watchdog/Kconfig @@ -1475,7 +1475,7 @@ config INDYDOG config JZ4740_WDT tristate "Ingenic jz4740 SoC hardware watchdog" - depends on MACH_JZ4740 || MACH_JZ4780 + depends on MIPS || COMPILE_TEST depends on COMMON_CLK select WATCHDOG_CORE select INGENIC_TIMER -- 2.11.0