Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp322422rwi; Wed, 26 Oct 2022 01:05:54 -0700 (PDT) X-Google-Smtp-Source: AMsMyM675n9vqFSLRg/IPx8oeQCX9b5sYQoBDt3Jq0wwGA9swOvZ4D9soax8V88/BrxRL8g9pMhz X-Received: by 2002:a17:902:ecc1:b0:186:b57e:d229 with SMTP id a1-20020a170902ecc100b00186b57ed229mr11309911plh.167.1666771553836; Wed, 26 Oct 2022 01:05:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666771553; cv=none; d=google.com; s=arc-20160816; b=DCnFeinV+lXh5o03dATgyQJzLXVklUmaCp42syLwAIl/1IfCa99aB7ISXdUBa/POtn kcROmviPAgOrRmcWmlMOGyeTNCdK8V38D3eemq8CLagqfm+G/Wlobkz09Tm0k1PtcyFl MmjQTFByKuoG/7gfmSOdOWOQ3w0vHIsl/yzglT047e/Iud+hG8AQ7VxZxRSaJ7o1nEJE sd9/yQ45HBMdFfa7gbpC4E8LMi/590KdUz/XcJch469Gr0KSJ8vDc0bLYf1XFZfo8YV/ B+2dNzHg9/r02Rd9OuODcL/nu/LyH/lXrn7jN6v8NKduIDqhDqogWXVVRNYrioEBP9HJ LGVQ== 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:dkim-signature; bh=feV4Utqv8ozfF9ac7comz58rKZGXfrX6/5o0kmlmYRI=; b=RNyBhlhAI4Q9qxO3FAo2ZHGabatg46q7yGypI13HKu8a1R9Z1ex9+9F2MEjl7iKdXy 5FQ/uAt/W3S2zTOY8qknETqxHZjOevlyP4efmj9Ejpr+rOr8tqDEg66Y1qUsuw58zpYD Fz4NO0crvjPU0HiyX5RvCI6UguWZIUZAHyn6ikLFbQsy9A9S5vrN9QhMHbfn4+LFVubT wwSSIPbhkaRRyVtAMcDxd88jDZq+cGFWb/lBHR7psgGOZlNN4bVDYGth/4SyarHv/wY0 Qk9Dx/oKmbTlIjyV1jTVinS67qZIeEQgegq5gM6WJO49MahDvb3JsMeACWQbiwY1YDD+ pjiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=LB5bipR1; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t14-20020a17090a3b4e00b001fe1cc52234si1728255pjf.67.2022.10.26.01.05.44; Wed, 26 Oct 2022 01:05:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-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=@linaro.org header.s=google header.b=LB5bipR1; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232748AbiJZH5I (ORCPT + 65 others); Wed, 26 Oct 2022 03:57:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233329AbiJZH5C (ORCPT ); Wed, 26 Oct 2022 03:57:02 -0400 Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16466A835C for ; Wed, 26 Oct 2022 00:56:58 -0700 (PDT) Received: by mail-lj1-x22e.google.com with SMTP id u2so11519349ljl.3 for ; Wed, 26 Oct 2022 00:56:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=feV4Utqv8ozfF9ac7comz58rKZGXfrX6/5o0kmlmYRI=; b=LB5bipR1rjFwI3ROgRtNJZRuLW3WFygpwCwwlkqom1YwpJCQHtETRqjfIezbOYaoI3 q/ZRZ5FAKnPWjSdSTiYLhknHbXGtSpVLdweuY53rN3qfyx6w/xKB1TBAviyNcx7lyGXV ta7E/VO5WmUrN0YLCGE8l6sHXhbykw5gk9rJjqOxBVTCv1UUnqBdBcjyhnYsOgTqPlHh tB2aJzY8qsInQ2r8XdLbc/a63s71wLqshZipD2U0GSx7xZ9k6FIpWYMzA/HFqiQ+A//z RPj9JVsMEKQXEOSk1yg2oBu9ru9ZQwuDzwxk0da6JGQG7D+1084M2lSkXxvWhaAN1Raq 9MyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=feV4Utqv8ozfF9ac7comz58rKZGXfrX6/5o0kmlmYRI=; b=2g0jxWjuRiIdf93KcYuM0/qhX0kCbh6ROWUHmXslFc+gs/3Y/5qpmKJOIiqY0HmqG2 Do3FARPi5Yz6ayrK0Nu3OQ9PZqyLcBOvjbatmtMjDHgc+XnyEhZwNdcnHxcuKbrzH8cB 3+Vv4VQ9lxbGuJ0oA3K8TSDyTWgl0vem3vqAymCqXw1PCKoCcQ5BBU1R64/FDlRxOAEP kEc1lZEDoo3fnWMGDSXzhuKpqLDYb2cubh83vuZ7u1bl07Zv2Q2LS+9DuPZrNBnaM9yn BZ6+BEeZn1K5AW0IWZW4LBt7HekorBxB0sy4gGPQ1dojFqZvn7Ij0aa6TA/ftSuRu9TP gg+Q== X-Gm-Message-State: ACrzQf1Birh9nZ4c9ZPAZZPKEnP4Ki6Mxm4NolX8iO9RPEv9K956ZatE jdqUhBRPDl3bFFBRLxgX0tshvQ== X-Received: by 2002:a05:651c:1549:b0:277:22c3:1980 with SMTP id y9-20020a05651c154900b0027722c31980mr342178ljp.500.1666771016739; Wed, 26 Oct 2022 00:56:56 -0700 (PDT) Received: from fedora.. ([85.235.10.72]) by smtp.gmail.com with ESMTPSA id a15-20020a194f4f000000b004acb2adfa1fsm742051lfk.307.2022.10.26.00.56.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Oct 2022 00:56:56 -0700 (PDT) From: Linus Walleij To: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= , Kalle Valo Cc: linux-wireless@vger.kernel.org, Arend van Spriel , Linus Walleij Subject: [PATCH v2] wifi: bcma/brcm80211: Use the proper include Date: Wed, 26 Oct 2022 09:56:53 +0200 Message-Id: <20221026075653.105387-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.37.3 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,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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-wireless@vger.kernel.org The is including the legacy header to obtain struct gpio_chip. Instead, include where this struct is defined. It turns out that the brcm80211 brcmsmac depends on this to bring in the symbol gpio_is_valid(). The driver looks up the BCMA parent GPIO driver and checks that this succeeds, but then it goes on to use the deprecated GPIO call gpio_is_valid() to check the consistency of the .base member of the BCMA GPIO struct. Surely this belongs in the BCMA driver: we cannot have all drivers performing cosistency checks on the internals of things they are passed. Acked-by: Arend van Spriel Signed-off-by: Linus Walleij --- ChangeLog v1->v2: - Combine two co-dependent patches - Collect Arend's ACK --- drivers/net/wireless/broadcom/brcm80211/brcmsmac/led.c | 2 +- include/linux/bcma/bcma_driver_chipcommon.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/broadcom/brcm80211/brcmsmac/led.c b/drivers/net/wireless/broadcom/brcm80211/brcmsmac/led.c index c1b9ac692d26..1cce92c5780f 100644 --- a/drivers/net/wireless/broadcom/brcm80211/brcmsmac/led.c +++ b/drivers/net/wireless/broadcom/brcm80211/brcmsmac/led.c @@ -63,7 +63,7 @@ int brcms_led_register(struct brcms_info *wl) int hwnum = -1; enum gpio_lookup_flags lflags = GPIO_ACTIVE_HIGH; - if (!bcma_gpio || !gpio_is_valid(bcma_gpio->base)) + if (!bcma_gpio) return -ENODEV; /* find radio enabled LED */ diff --git a/include/linux/bcma/bcma_driver_chipcommon.h b/include/linux/bcma/bcma_driver_chipcommon.h index 2d94c30ed439..0cb6638b55e5 100644 --- a/include/linux/bcma/bcma_driver_chipcommon.h +++ b/include/linux/bcma/bcma_driver_chipcommon.h @@ -4,7 +4,7 @@ #include #include -#include +#include /** ChipCommon core registers. **/ #define BCMA_CC_ID 0x0000 -- 2.34.1