Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp169243imu; Wed, 12 Dec 2018 14:19:21 -0800 (PST) X-Google-Smtp-Source: AFSGD/VUqwv+yrDwz7u58/BVYqZE0IjreEbsDpRaqOopMoz8iy2kDj+BQLmnGOZwRv0R0soOWADp X-Received: by 2002:a62:ae12:: with SMTP id q18mr21864287pff.126.1544653161471; Wed, 12 Dec 2018 14:19:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544653161; cv=none; d=google.com; s=arc-20160816; b=R0nAAZbH0ItlDErhoNG1gBOGv5y/wtH97XjEUV62NV+GK5qh9x2bt8rAPYidxBB+am nRvXDzcuLW2OjLNUn8kCKvrhmstgHcRnTnA2ojOb8QGfvrWrViH6bimDENMBNldXgIrP /NIqP0LoWiNOcAjjaC7iHtnT3YV+HkKClmZTJ4fGIEy9QLQxrD2W13RKj7ENUz0ZbyTr uf/N9Sso4HaNbOWMxH/5+vrfS5QgcdNFvlnha9ThV3PcABcRc8t5tGyTWbsqzzs5zZOn YpV4DUpGekJLHFBcYDUVFJVSGF17GtezltJIrKT5gQBN8nXlMLYrDXdWeM+V47T8YIqo 5EMQ== 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; bh=AmU0dHA6Z3m4AwhJA0JR4vRuFFcMf5eDXWc5HbevmMM=; b=rDdPe1dJfuaOaR6LCzU1B0ysX33AQ9UtF0UK0PzXymG4xrZ0TUqenvJU+YZOe4wp7E zX9i5Zo+v+0/r611UqVYhCYVCQnuP8oPLm0gX0EyCSqjfqkinHCOZEWCsTwIVSlEk+/J Cqm0oKwPuiKxjrdRDSSLSDHjpyp6tZhtT29LMcl7QQuUQd1MeY5TXXQAozC3Cq/H/q7i EPIaUkA07crNmFX1Ovz1BsbKg66y6n9iDlU/mgV8PqrLRrSealQ/ViPPJ+N29Efoi/QJ 2pX8aZ/h8jmgC1anO/RhmolfKZZhCGveKbp/N5M5y79pfe/ZlO79aRF9QqSxwM6yk2mT EEww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@crapouillou.net header.s=mail header.b=yBbHyYm4; 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 w14si19568plq.145.2018.12.12.14.19.06; Wed, 12 Dec 2018 14:19:21 -0800 (PST) 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=yBbHyYm4; 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 S1728694AbeLLWQ6 (ORCPT + 99 others); Wed, 12 Dec 2018 17:16:58 -0500 Received: from outils.crapouillou.net ([89.234.176.41]:40704 "EHLO crapouillou.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728359AbeLLWQ4 (ORCPT ); Wed, 12 Dec 2018 17:16:56 -0500 From: Paul Cercueil To: Thierry Reding , Rob Herring , Mark Rutland , Daniel Lezcano , Thomas Gleixner , Ralf Baechle , Paul Burton , James Hogan , Jonathan Corbet Cc: Mathieu Malaterre , Ezequiel Garcia , PrasannaKumar Muralidharan , linux-pwm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-watchdog@vger.kernel.org, linux-mips@vger.kernel.org, linux-doc@vger.kernel.org, linux-clk@vger.kernel.org, od@zcrc.me, Paul Cercueil Subject: [PATCH v8 10/26] watchdog: jz4740: Drop dependency on MACH_JZ47xx, use COMPILE_TEST Date: Wed, 12 Dec 2018 23:09:05 +0100 Message-Id: <20181212220922.18759-11-paul@crapouillou.net> In-Reply-To: <20181212220922.18759-1-paul@crapouillou.net> References: <20181212220922.18759-1-paul@crapouillou.net> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1544652592; bh=AmU0dHA6Z3m4AwhJA0JR4vRuFFcMf5eDXWc5HbevmMM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=yBbHyYm4br0WqVynYqDoz/fbp6lR+C/cywobIRfHATGp7I1sYwKP0lOogO3Qsm0s0Pw9AUSRbp3MtDU76UrhhLI60593JFB+Q6UZFgy810ONyLD5jMx7bXPjdZ2xwZU2WplkyN4skXsXyMOPDyAk6LhZKFlxrJgxNAMVjgwiE1M= 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 v8: No change drivers/watchdog/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig index cfd7368fc3c0..eb5dbb1db64d 100644 --- a/drivers/watchdog/Kconfig +++ b/drivers/watchdog/Kconfig @@ -1496,7 +1496,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