Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2529627imm; Thu, 9 Aug 2018 14:47:46 -0700 (PDT) X-Google-Smtp-Source: AA+uWPycEr4om5aN0/zYbJIHVGNIZ0pK6MMTdokCz3zaeextXt95wDNFk/jl9DSkCFOQaOhVtqR+ X-Received: by 2002:a63:704f:: with SMTP id a15-v6mr3700929pgn.443.1533851266507; Thu, 09 Aug 2018 14:47:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533851266; cv=none; d=google.com; s=arc-20160816; b=ot8yd1brl6x2Af3PBClwIKTtyS96hywheIyzkBVezyzTVZ/YXoX9icNMXV0a7Vr/ew KxqPIFW3KUSLWNJvx2THaPyT0MN7zRdNi/OYq64Hjbbjx1Vlv5VHP52k8k5zi7OpqhtM t/s0u41rlRlXhyz6QV3vtx0W5JeCLbQBST0uRMqjt86vBnD+k9Iyf5FTOxN8fNtAuO8m TrAP0xYOa32z2LEcif6IuvlJRPtaE2pi/yaWj7tKHoISKTRRQtCPFB/mMgzIP46uH3+x 2XHk9Xt6636RgKB8nOeDfSuHb/Ql54DabCW/qXNcurRWofTm4hjAEkOA9xSJa3EXsdip DENg== 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=Ee9s2TvzLPv9MzflZrODGYoWhw9FMr4QpwbenY2Po4A=; b=RsfbGkRbWCpfyj2cDEf4K3wDQ7zDYTHGMior2qRsI5FCk7AL3D82tMIfffOzuKleIX VCeXsph+thI9q6HRij7yMDNYvERKpNXtt25h3a0v3jUOsMZQOT9TKipJYXui9afa/4gQ ysQNMujASwU1yStqgNiiL9M8IRZ4BHmv41R9fUPxYklOv6tBtxuF/axNOrS63iAesh50 BEzUFxxnNKwAliqArCzztaOJ2AJO2EsVr2H/AQL62LmONAeRmJrdrG4V5w7yEqExLhQc RqrXP2qL6Ln0JjR6W0xCUAzBIMYyF1sWEmYYhbfLJaZ3rgToRSwAYHxsjjMNbzVaVyrc g+lg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@crapouillou.net header.s=mail header.b=mioJcF3s; 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 u16-v6si6591610pgv.180.2018.08.09.14.47.31; Thu, 09 Aug 2018 14:47:46 -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=mioJcF3s; 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 S1727817AbeHJAMC (ORCPT + 99 others); Thu, 9 Aug 2018 20:12:02 -0400 Received: from outils.crapouillou.net ([89.234.176.41]:33964 "EHLO crapouillou.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727268AbeHJAMB (ORCPT ); Thu, 9 Aug 2018 20:12:01 -0400 From: Paul Cercueil To: Rob Herring , Mark Rutland , Thierry Reding , Daniel Lezcano , Thomas Gleixner , Wim Van Sebroeck , Guenter Roeck , Ralf Baechle , Paul Burton , James Hogan , Jonathan Corbet , Lee Jones , Mathieu Malaterre , Ezequiel Garcia Cc: 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 v6 14/24] pwm: jz4740: Drop dependency on MACH_INGENIC, use COMPILE_TEST Date: Thu, 9 Aug 2018 23:44:04 +0200 Message-Id: <20180809214414.20905-15-paul@crapouillou.net> In-Reply-To: <20180809214414.20905-1-paul@crapouillou.net> References: <20180809214414.20905-1-paul@crapouillou.net> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1533851113; bh=Ee9s2TvzLPv9MzflZrODGYoWhw9FMr4QpwbenY2Po4A=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=mioJcF3sQO31Un1cRqtQtpovBHTZ5aXDoKrCvGJNB6zN3uXFY41aYpu7AlwWQnuFBbYQXdWPc/IrQpp36M1HQu57TB37Bc+i+31kkUSx7azzd9HF0WvN2VUeA1rSP20OIKxKzHq+LkGatmpREq4E4l4Ks2lIaV/JxFNI1jzYU+Q= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Depending on MACH_INGENIC 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 --- drivers/pwm/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) v5: New patch v6: No change diff --git a/drivers/pwm/Kconfig b/drivers/pwm/Kconfig index 58359bf22b96..e53ad662ef87 100644 --- a/drivers/pwm/Kconfig +++ b/drivers/pwm/Kconfig @@ -201,7 +201,7 @@ config PWM_IMX config PWM_JZ4740 tristate "Ingenic JZ47xx PWM support" - depends on MACH_INGENIC + depends on MIPS || COMPILE_TEST depends on COMMON_CLK select INGENIC_TIMER help -- 2.11.0