Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp7599218rwi; Mon, 24 Oct 2022 17:26:13 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4WBQYbMVSz7e9Cea/qZ7SC+wkybBr1edNMf1doeVo2oimEJZsbKuzbKrU98kMEnEdijL4u X-Received: by 2002:a05:6402:3709:b0:459:279e:fdc6 with SMTP id ek9-20020a056402370900b00459279efdc6mr33437376edb.338.1666657573326; Mon, 24 Oct 2022 17:26:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666657573; cv=none; d=google.com; s=arc-20160816; b=XzIyjdYnjZTpepkHs9xb8lb8/qsYwtX4Nusz+BBHyuh4v9Y0Gdf33aQL7GuV5ee6Oa 97P36CgJDlPmu8VWpuTvwtkspZrnR8Yd34gIDPoHg0a6QfpcCo3ujCADzf5dEt+Ynkbq I+SLS9skf81VYSr1hDYDBkh1f44lIlxiguL5bicVYeYt4vEAeofvwdAwu5x6eXKjI8CF xzrWcD/n6o5H/fRgLhDK+5jorJi7j9Joph0uNY5dj37aUVvf9uiC+325fIh2VJ+albVT 1JVmV9vpGrSNl/8COxvz12l1r23eyiXhgracTtck0eaL1afaicBQ+BqcjM10mpMwksEs 64qA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Vr7lNDSbGtSjiNdf7yERkT0vvFH6fFGxF2sxGNjzC/g=; b=b/M1ZAmL2zy9OqQCxGp20beUAkbM3DoaJeRQSHTXj0dEqNMhwfRomt0d+JngS4ZiZ2 UAXjPv3xw6jeH9HQlHSDVUh7UO+L7x4DwHLDnQwb5GvsKtIRjTkap2g7m5DKqQZIrvJG tHjlAb7AYSTGEPLkv4i5U7lVHX0VeVyDRVWEts//Q7136CHcoapdIwuMRaXOrFRdqSS+ mb9bgZregIwFwW33Tuxm36e/EpLpaciv2C5GEA0kHb/+BAdbBZEfAIYzSH49ql/aK/mF 2fsGgC9hJfPrxL1vdhHF1QkFPkHk/L784uxFdGBDeK4rAb3xcQUohkKvekVwei9HLoF4 IOcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@crapouillou.net header.s=mail header.b=B2abmIY2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ne31-20020a1709077b9f00b007abafe45a93si1076483ejc.701.2022.10.24.17.25.48; Mon, 24 Oct 2022 17:26:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@crapouillou.net header.s=mail header.b=B2abmIY2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S229968AbiJXXbW (ORCPT + 99 others); Mon, 24 Oct 2022 19:31:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40282 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230341AbiJXXaz (ORCPT ); Mon, 24 Oct 2022 19:30:55 -0400 Received: from aposti.net (aposti.net [89.234.176.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC676147D03; Mon, 24 Oct 2022 14:51:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1666644742; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Vr7lNDSbGtSjiNdf7yERkT0vvFH6fFGxF2sxGNjzC/g=; b=B2abmIY22GUeSjPRTWzhdM/9vbX7QdDB9z6ewKCRCOvLaLS1P/CDnidjVpsxGAFWB9KLs7 JPgBNcc5ZPDngtVnNwFl8YpWba+3xfg8Dz3jVqpmCK2cv1bSPBhPG8z3kixHrN2vdJ4vc9 jZ+a11nSsRwYNTUVc3yMBQxX/K2NLcQ= From: Paul Cercueil To: Thierry Reding , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Cc: od@opendingux.net, linux-pwm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, Paul Cercueil Subject: [PATCH 4/5] pwm: jz4740: Depend on MACH_INGENIC instead of MIPS Date: Mon, 24 Oct 2022 21:52:12 +0100 Message-Id: <20221024205213.327001-5-paul@crapouillou.net> In-Reply-To: <20221024205213.327001-1-paul@crapouillou.net> References: <20221024205213.327001-1-paul@crapouillou.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The MACH_INGENIC Kconfig option will be selected when building a kernel targeting Ingenic SoCs, but also when compiling a generic MIPS kernel that happens to support Ingenic SoCs. Therefore, if MACH_INGENIC is not set, we know that we're not even trying to build a generic kernel that supports these SoCs, and we can hide the options to compile the SoC-specific drivers. Signed-off-by: Paul Cercueil --- drivers/pwm/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pwm/Kconfig b/drivers/pwm/Kconfig index 1fe420a45f91..cb623d0702f6 100644 --- a/drivers/pwm/Kconfig +++ b/drivers/pwm/Kconfig @@ -282,7 +282,7 @@ config PWM_IQS620A config PWM_JZ4740 tristate "Ingenic JZ47xx PWM support" - depends on MIPS || COMPILE_TEST + depends on MACH_INGENIC || COMPILE_TEST depends on COMMON_CLK && OF select MFD_SYSCON help -- 2.35.1