Arnd Bergmann
87e6e1957c
mt76: fix LED link time failure
...
[ Upstream commit d68f4e43a46ff1f772ff73085f96d44eb4163e9d ]
The mt76_led_cleanup() function is called unconditionally, which
leads to a link error when CONFIG_LEDS is a loadable module or
disabled but mt76 is built-in:
drivers/net/wireless/mediatek/mt76/mac80211.o: In function `mt76_unregister_device':
mac80211.c:(.text+0x2ac): undefined reference to `led_classdev_unregister'
Use the same trick that is guarding the registration, using an
IS_ENABLED() check for the CONFIG_MT76_LEDS symbol that indicates
whether LEDs can be used or not.
Fixes: 36f7e2b2bb1d ("mt76: do not use devm API for led classdev")
Signed-off-by: Arnd Bergmann <[email protected] >
Acked-by: Felix Fietkau <[email protected] >
Signed-off-by: Kalle Valo <[email protected] >
Signed-off-by: Sasha Levin <[email protected] >
2020-10-01 13:18:11 +02:00
..
appletalk
arcnet
bonding
bonding: fix active-backup failover for current ARP slave
2020-08-26 10:41:05 +02:00
caif
can
dsa
net: dsa: rtl8366: Properly clear member config
2020-09-26 18:03:12 +02:00
ethernet
e1000: Do not perform reset in reset_task if we are already down
2020-10-01 13:18:03 +02:00
fddi
fjes
hamradio
yam: fix possible memory leak in yam_init_driver
2020-06-24 17:50:18 +02:00
hippi
hippi: Fix a size used in a 'pci_free_consistent()' in an error handling path
2020-07-29 10:18:31 +02:00
hyperv
hv_netvsc: Remove "unlikely" from netvsc_select_queue
2020-09-23 12:40:34 +02:00
ieee802154
ieee802154: fix one possible memleak in adf7242_probe
2020-07-29 10:18:32 +02:00
ipvlan
ipvlan: fix device features
2020-09-03 11:26:41 +02:00
netdevsim
netdevsim: fix unbalaced locking in nsim_create()
2020-07-29 10:18:33 +02:00
phy
net: phy: Do not warn in phy_stop() on PHY_DOWN
2020-09-26 18:03:15 +02:00
plip
ppp
pppoe: only process PADT targeted at local interfaces
2020-05-20 08:20:09 +02:00
slip
team
team: fix hang in team_mode_get()
2020-04-29 16:33:09 +02:00
usb
net: usb: dm9601: Add USB ID of Keenetic Plus DSL
2020-09-12 14:18:55 +02:00
vmxnet3
vmxnet3: use correct tcp hdr length when packet is encapsulated
2020-08-19 08:16:23 +02:00
wan
hdlc_ppp: add range checks in ppp_cp_parse_cr()
2020-09-26 18:03:12 +02:00
wimax
wimax/i2400m: Fix potential urb refcnt leak
2020-05-10 10:31:26 +02:00
wireless
mt76: fix LED link time failure
2020-10-01 13:18:11 +02:00
xen-netback
dummy.c
eql.c
geneve.c
geneve: add transport ports in route lookup for geneve
2020-09-26 18:03:11 +02:00
gtp.c
gtp: add GTPA_LINK info to msg sent to userspace
2020-09-09 19:12:25 +02:00
ifb.c
Kconfig
LICENSE.SRC
loopback.c
macsec.c
net: macsec: preserve ingress frame ordering
2020-05-14 07:58:21 +02:00
macvlan.c
macvlan: validate setting of multiple remote source MAC addresses
2020-09-03 11:27:00 +02:00
macvtap.c
Makefile
mdio.c
mii.c
net_failover.c
net_failover: fixed rollback in net_failover_open()
2020-06-17 16:40:19 +02:00
netconsole.c
nlmon.c
ntb_netdev.c
rionet.c
sb1000.c
Space.c
sungem_phy.c
tap.c
thunderbolt.c
tun.c
tun: correct header offsets in napi frags mode
2020-06-17 16:40:20 +02:00
veth.c
veth: Adjust hard_start offset on redirect XDP frames
2020-06-22 09:31:06 +02:00
virtio_net.c
virtio_net: fix lockdep warning on 32 bit
2020-05-20 08:20:10 +02:00
vrf.c
vrf: Check skb for XFRM_TRANSFORMED flag
2020-04-29 16:33:11 +02:00
vsockmon.c
vxlan.c
Revert "vxlan: fix tos value before xmit"
2020-08-11 15:33:41 +02:00
xen-netfront.c
xen-netfront: fix potential deadlock in xennet_remove()
2020-08-05 09:59:51 +02:00