Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp5358604imm; Tue, 21 Aug 2018 10:20:01 -0700 (PDT) X-Google-Smtp-Source: AA+uWPx2Q4nvdjOfjaFkt5wgxVuDOv7tjCj9MzMS77W6wka2Y0s8VeMTwhKq1FP0I+WHMT5d74xt X-Received: by 2002:a63:be4a:: with SMTP id g10-v6mr45360268pgo.378.1534872001089; 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=AOh1iJt/aWBipDUUdk/QYu4IMXoOplxvD1V6Aof33yHYxAr/LXk0/SdZqWjCgW521R d7ZDzq7EDg8QsgWsPpwRm7BF2XQQmX51mntLw+9ofkoaNkH52yOHWvrRdxLHuVaEQSTo 5pF4ZZIit54JeBN61Qb8NBVtl97Z7Z9PzhUy503uOqPc3rAT8aTTmKN0/jTt/8/ovBGe cm3ynrbj+kKFsrK7uI+PpACa3vHye6rUzx1AJM64r/pjLHUim7hcZ3CUPracwmPyVEMZ yGgpzKrVxreiKWkz8r/xxWKV44C3mzpUKQLg95rRx/8njs3Mz9AP4quZ4c+1b7rZ61QV xkBQ== 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=mhzr5CxbR4Zg+O9L1XVg9f4zBvclGEEAgIQ64SJ2AZc=; b=k05x/I+JCrH6EwdkQJt+KT0C2APUpouGRWMOHmfZbxfvkThY62sukZUDJM0/MgT9lq oNB4Fwtqt4xtMTQ9DDQ7w4Jnb3zapFxx9tecH1Bsw2czGmFNMLc/Y+mDGdN4CojLwYZ4 zXA8E/7GDbFbVXur/NfdGceZoFXv14qWVKYCdEE2RIEF7Opi4ScqwmEOR4wMwb3v2iOi Lbalc8lVQFsds57DMqnZSYjMC0X8EeMfYECEpnXYihf//7alyxbwIToz6vdr4HUo6l7w oU6qU4KTXgbHqQILtBbFtvSqq659yiHPRx1UNw1+ZS17n14UQiiq4e8SHPlzjUH//Sjf YQeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@crapouillou.net header.s=mail header.b=KFEjq9MN; 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 i4-v6si3818349pgs.93.2018.08.21.10.19.46; 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=KFEjq9MN; 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 S1728277AbeHUUiP (ORCPT + 99 others); Tue, 21 Aug 2018 16:38:15 -0400 Received: from outils.crapouillou.net ([89.234.176.41]:57628 "EHLO crapouillou.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727407AbeHUUiO (ORCPT ); Tue, 21 Aug 2018 16:38:14 -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 14/24] pwm: jz4740: Drop dependency on MACH_INGENIC, use COMPILE_TEST Date: Tue, 21 Aug 2018 19:16:25 +0200 Message-Id: <20180821171635.22740-15-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=1534871832; bh=mhzr5CxbR4Zg+O9L1XVg9f4zBvclGEEAgIQ64SJ2AZc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=KFEjq9MNiuVUINYq6Sos0VdLWyUM6iuG7Ge8GNux/MsqQ+VvWR5PBBQ7GM8RiS2eIxbJAqkgPkGTUFQgjbyjBH1MjP+qctDnfsHM8ac/XVCRAOpv/GQW8jQi9+9vna8RW9O6sP6VI2O+xi6AAceDGE+483OFiffez2e2PYSXivw= 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 --- Notes: v5: New patch v6: No change v7: No change drivers/pwm/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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