From patchwork Fri Mar 16 14:45:48 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 10287655 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E718D602C2 for ; Fri, 16 Mar 2018 14:46:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D658928F1C for ; Fri, 16 Mar 2018 14:46:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C845128F1E; Fri, 16 Mar 2018 14:46:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6E1EF28F1C for ; Fri, 16 Mar 2018 14:46:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753192AbeCPOp7 (ORCPT ); Fri, 16 Mar 2018 10:45:59 -0400 Received: from mail-wr0-f196.google.com ([209.85.128.196]:33005 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753208AbeCPOp6 (ORCPT ); Fri, 16 Mar 2018 10:45:58 -0400 Received: by mail-wr0-f196.google.com with SMTP id z73so7724316wrb.0 for ; Fri, 16 Mar 2018 07:45:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=hpLCnXDKLU2MvTdT0P9AuctiMPEoFOS9RTiFmaFc84o=; b=BT7I/+EJsANSz+K2yAmNgs4nAcQFTR7V3ZjL1ssTyS+qYGvs88a4D8Ka3Hj7rexaNK kviA5ImaK7sSD9eyhByLHqGdLq8xL1QB72TQs3cESiospHtpYvVN27iIl2fMn56SHMQS XzqldVSx3C+RIhbiNybjzxxFmnOudURmP9TnW7QWLkQqf72R+5j6UCjx3gFTkdYEJn+L CAMkISfnsyDCJ5V66N+2JpzxK8EwfTXa9O5BYs3LQKISUnxVELqGiz15CtuxzA+H5znh +leWqnHXNiwxNKuIt+LOkpN/cRYrjZXTHhkN5mCIfVx1NeqBZCUShAa48vymnNV+J5Xo jlPQ== X-Gm-Message-State: AElRT7HcJ/rtCHIcfZWHKiEIupXMlxlfpyJuNjQ5W9+e1+NyfPcBcTah BCCmlD6XDDHXCBGHHGRablxtGHU6mvo= X-Google-Smtp-Source: AG47ELtXtOwM5F4dU2NB0bHSFxlgoJpvv5+15gAMBwsaJHv1Xzq2fyVNfqCMCaYd1skOQl00YeULAg== X-Received: by 10.223.172.167 with SMTP id o36mr2039304wrc.34.1521211557383; Fri, 16 Mar 2018 07:45:57 -0700 (PDT) Received: from localhost.localdomain.com (nat-pool-mxp-t.redhat.com. [149.6.153.186]) by smtp.gmail.com with ESMTPSA id f23sm9409773wra.51.2018.03.16.07.45.56 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 16 Mar 2018 07:45:56 -0700 (PDT) From: Lorenzo Bianconi To: nbd@nbd.name Cc: linux-wireless@vger.kernel.org, arnd@arndb.de Subject: [PATCH] mt76: enable MAC80211_LEDS by default Date: Fri, 16 Mar 2018 15:45:48 +0100 Message-Id: X-Mailer: git-send-email 2.14.3 In-Reply-To: References: Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Select mac80211 led support by default in order to fix the following compilation error that occurs when CONFIG_LEDS_CLASS/CONFIG_MAC80211_LEDS options are not enabled on the system ERROR: "devm_of_led_classdev_register" undefined! Fixes: 17f1de56df05 ("mt76: add common code shared between multiple chipsets") Signed-off-by: Lorenzo Bianconi --- drivers/net/wireless/mediatek/mt76/Kconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/wireless/mediatek/mt76/Kconfig b/drivers/net/wireless/mediatek/mt76/Kconfig index fc05d79c80d0..0bbd492c2c2b 100644 --- a/drivers/net/wireless/mediatek/mt76/Kconfig +++ b/drivers/net/wireless/mediatek/mt76/Kconfig @@ -1,5 +1,8 @@ config MT76_CORE tristate + select MAC80211_LEDS + select LEDS_CLASS + select NEW_LEDS config MT76x2E tristate "MediaTek MT76x2E (PCIe) support"