Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp734233rwb; Tue, 4 Oct 2022 09:54:40 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7/SdjbK30KHG4Sg3uWdeMrmRoobZD47ImbexWE2xUN9kyTrHUYcxz8uwrNFPT1CAB2mrDK X-Received: by 2002:a17:902:ce8d:b0:178:47e8:6ed8 with SMTP id f13-20020a170902ce8d00b0017847e86ed8mr28454594plg.12.1664902479670; Tue, 04 Oct 2022 09:54:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664902479; cv=none; d=google.com; s=arc-20160816; b=YoAgSfggkr8ggE4/diUtkl4Gqy8lsLxKqh25EFOcshUILzbTrk4gQZXlktKh3CoBfi UKuF9nchEy5fN2AsoAilFDPbMNyUzBZQfzIheqsKdgT0orxwW0iiwkRXFDEl/dt1UdVc 7oNXgM0r+NJtSGvCRUtlN4Gi+sRynFV8yjFTeLLJ6FvHZvdR8d5pCGvvjbcJKy/F5hKC aza42vVziOkFdV9OhKTraUqygEss6Jy8LJQBqeIMeCn5E6Ajn/YKgSxaObw5uu6S9a7M 1/goqj/KMaEcwJIh9EPPRSnqURVwbhItdLtEiAhCwySqn4H5cBQDDyw8TTRPaI/6pFFN 4A+Q== 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 :message-id:date:subject:cc:to:from; bh=AE2criyBETG2SlBNMgF7QMBS8By36g/sLpQpqkUMH9I=; b=YWEDC5ggta9x/J1L4UNgnHGNDHos11KMIYuODUs4EooMSjDglpR1B0hV2uklTQK11K 1fEfVAyipvVoTQ4f2twxFbwenDfEgvPHhj19FWAjwgIz6Wl56OCs9x0kOJPju+BOcMXR OufayC44B0f16lrrjvv2MEI6hC5CGyXuJGQP/7sM65BOO5dIwRQEVMWM56KJfWyGndgI 8wm0Gjjy7KJodXzm/Nxgng6A8jyHw0cMYeX/HCmdi8RIkbLbojQr5eSdUHarsRaEI43p IMZEExWdom9+WJm73tHm6Wo69OD1DXKU7CGcD4/m4fx05CZhYZxmESVv8H+i5IHsIMM/ SmfA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a17-20020a634d11000000b0044bd2acd34asi8831432pgb.348.2022.10.04.09.54.27; Tue, 04 Oct 2022 09:54:39 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229935AbiJDQYF (ORCPT + 99 others); Tue, 4 Oct 2022 12:24:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229626AbiJDQYC (ORCPT ); Tue, 4 Oct 2022 12:24:02 -0400 Received: from albert.telenet-ops.be (albert.telenet-ops.be [IPv6:2a02:1800:110:4::f00:1a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DF0B361DB0 for ; Tue, 4 Oct 2022 09:23:58 -0700 (PDT) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed50:e15b:43db:96f7:952f]) by albert.telenet-ops.be with bizsmtp id TsPv2800f2GKRF306sPv17; Tue, 04 Oct 2022 18:23:57 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1ofki3-000hGR-8o; Tue, 04 Oct 2022 18:23:55 +0200 Received: from geert by rox.of.borg with local (Exim 4.93) (envelope-from ) id 1ofki2-007yf0-JW; Tue, 04 Oct 2022 18:23:54 +0200 From: Geert Uytterhoeven To: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Andrew Lunn , Oleksij Rempel Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH] net: pse-pd: PSE_REGULATOR should depend on REGULATOR Date: Tue, 4 Oct 2022 18:23:53 +0200 Message-Id: <709caac8873ff2a8b72b92091429be7c1a939959.1664900558.git.geert+renesas@glider.be> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_NONE 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 Regulator based PSE controller driver relies on regulator support to be enabled. If regulator support is disabled, it will still compile fine, but won't operate correctly. Hence add a dependency on REGULATOR, to prevent asking the user about this driver when configuring a kernel without regulator support. Fixes: 66741b4e94ca7bb1 ("net: pse-pd: add regulator based PSE driver") Signed-off-by: Geert Uytterhoeven --- drivers/net/pse-pd/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/pse-pd/Kconfig b/drivers/net/pse-pd/Kconfig index 73d163704068ac27..687dec49c1e13fa0 100644 --- a/drivers/net/pse-pd/Kconfig +++ b/drivers/net/pse-pd/Kconfig @@ -14,6 +14,7 @@ if PSE_CONTROLLER config PSE_REGULATOR tristate "Regulator based PSE controller" + depends on REGULATOR || COMPILE_TEST help This module provides support for simple regulator based Ethernet Power Sourcing Equipment without automatic classification support. For -- 2.25.1