Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp169462imu; Wed, 12 Dec 2018 14:19:35 -0800 (PST) X-Google-Smtp-Source: AFSGD/W/7asczyo+KCavSftdGZwqvjTp/OnjDHTKExmY05dWlgfBCX2mB6qlhsDmT4NuzRMcResn X-Received: by 2002:a17:902:4c85:: with SMTP id b5mr20428065ple.226.1544653175243; Wed, 12 Dec 2018 14:19:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544653175; cv=none; d=google.com; s=arc-20160816; b=lLWwff43wWT7xp2Q5eqF3YMLx0L5GeXLVjBSdX1GMC3Q6yT1RvEhtoxCcrsPiO6SIO A3nNNU2Esw/xd8peFT3Y09VBu8mIuFYI+zLCTR9bYeKaa2/aeikb0MBLMjEF5wY5NDGV XG0vzOiGLyh10VZS2vBulKMQ9E96aoeq8NPPG58ZmP2wm7M3OAdoxpL+TjnP1R1P39LM 9gJer4a9RYiuMqBUlNFMUJ6fLE5lTcgCZvGfd4D+5HV1E9MKPfuMuCaxW/HVcS0miglb q8f512/GvGGKxgwMRqCoBcYPtUOTeBonpYPrPkFAlyHHayQgPDKBNijaDs7TY5AKmSea MbIw== 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=SWI/K/CRfmGmJB4mlqlw0aKWP/XyOrbdLqXKfrLJaQE=; b=I3Wc4wDtIitXCQgSbFAhcQKEaAhhId69uldSpzvyA1ARqDvEH696SCX7hO9O587rz7 9oX2v71Y0HMKfyCu8w5pFFEw0tOSg93neeF6Bkn4wUc2to/aSuNOicN03NcdPDHr6C4E FLZBVdOX75a1Lqtukludw71YMzw0p5aT/8cGMj2hC5W4Y7WO8KEn2Nmwsc+LA9zSm4Up L3S8RApPHuloAtav3NpjwfJYO8MSAsCeaJ8UV8nWxyoIQNf8zr2Vxs/c4Fucf+Lquu1K AiAC1G6TLs6xldgONFvlHhl3OTC9I1PQkn5Lh2w2XU1yWxg1bfZFaawsqxVac8hbEcP0 umiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@crapouillou.net header.s=mail header.b=P2uQoYdp; 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 s191si27636pfs.53.2018.12.12.14.19.20; Wed, 12 Dec 2018 14:19:35 -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=P2uQoYdp; 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 S1728706AbeLLWQ7 (ORCPT + 99 others); Wed, 12 Dec 2018 17:16:59 -0500 Received: from outils.crapouillou.net ([89.234.176.41]:40770 "EHLO crapouillou.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728414AbeLLWQ4 (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 13/26] pwm: jz4740: Drop dependency on MACH_INGENIC, use COMPILE_TEST Date: Wed, 12 Dec 2018 23:09:08 +0100 Message-Id: <20181212220922.18759-14-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=1544652597; bh=SWI/K/CRfmGmJB4mlqlw0aKWP/XyOrbdLqXKfrLJaQE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=P2uQoYdpqXTgXQ7A13dFRFwwWW5lNqGwPO/rkUFL4zYjVWKxXGS0Y/OAmTthbJen32o7Rq8BDQmyUqCNW8TN314I+7st37tmcRKgN65T7iizrs818gYnCwC53XzHRXWsUOLL3ppOqGj/OpXhqhEut2DUczXko6+z1o5Icb9SLbE= 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 Acked-by: Thierry Reding --- Notes: v5: New patch v6: No change v7: No change v8: No change drivers/pwm/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pwm/Kconfig b/drivers/pwm/Kconfig index 0343f0c1238e..d6f62d9cdc18 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