Arnd Bergmann
b374e8686f
mt76: fix building without CONFIG_LEDS_CLASS
...
When CONFIG_LEDS_CLASS is disabled, or it is a loadable module while
mt76 is built-in, we run into a link error:
drivers/net/wireless/mediatek/mt76/mac80211.o: In function `mt76_register_device':
mac80211.c:(.text+0xb78): relocation truncated to fit: R_AARCH64_CALL26 against undefined symbol `devm_of_led_classdev_register'
We don't really need a hard dependency here as the driver can presumably
work just fine without LEDs, so this follows the iwlwifi example and
adds a separate Kconfig option for the LED support, this will be available
whenever it will link, and otherwise the respective code gets left out from
the driver object.
Fixes: 17f1de56df ("mt76: add common code shared between multiple chipsets")
Signed-off-by: Arnd Bergmann <arnd@arndb.de >
Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com >
Signed-off-by: Kalle Valo <kvalo@codeaurora.org >
2018-11-06 18:46:33 +02:00
..
2018-11-02 11:22:45 -07:00
2018-10-02 15:53:53 -07:00
2018-10-26 08:21:04 -06:00
2018-10-18 15:39:10 -07:00
2018-11-01 18:34:46 -07:00
2018-10-31 08:54:17 -07:00
2018-11-02 11:25:48 -07:00
2018-10-24 14:43:41 +01:00
2018-10-29 15:16:01 -07:00
2018-10-25 11:17:40 -06:00
2018-10-27 09:24:24 -07:00
2018-10-31 11:08:30 -07:00
2018-11-04 08:15:15 -08:00
2018-10-25 18:39:02 +02:00
2018-10-30 09:08:07 -07:00
2018-10-25 16:43:35 -07:00
2018-09-22 09:07:33 -07:00
2018-10-02 10:16:41 +09:00
2018-10-25 06:50:48 -07:00
2018-11-02 11:17:22 -07:00
2018-11-03 18:25:17 -07:00
2018-10-16 11:13:50 +02:00
2018-10-24 00:41:07 +01:00
2018-10-25 06:50:48 -07:00
2018-11-02 10:58:20 -07:00
2018-11-01 08:42:21 -07:00
2018-10-15 20:54:17 +02:00
2018-10-23 09:42:05 +01:00
2018-10-11 12:12:55 +02:00
2018-10-31 23:33:34 +00:00
2018-09-28 08:30:28 -06:00
2018-10-23 13:32:18 +01:00
2018-10-29 10:38:10 -07:00
2018-10-26 16:25:19 -07:00
2018-10-28 11:35:40 -07:00
2018-10-31 08:54:16 -07:00
2018-11-01 12:38:48 +01:00
2018-11-01 19:58:52 -07:00
2018-10-26 20:51:36 +02:00
2018-10-09 08:25:08 -06:00
2018-10-31 08:54:16 -07:00
2018-10-29 10:30:44 -07:00
2018-11-02 11:25:48 -07:00
2018-10-31 10:53:29 -07:00
2018-09-25 13:19:52 -07:00
2018-09-28 08:30:28 -06:00
2018-09-28 02:13:33 -04:00
2018-10-31 16:47:55 -07:00
2018-11-01 19:58:52 -07:00
2018-10-23 13:32:18 +01:00
2018-11-04 14:46:04 -08:00
2018-10-23 08:45:05 +01:00
2018-11-06 18:46:33 +02:00
2018-10-23 13:28:53 -05:00
2018-11-01 10:33:12 -04:00
2018-10-25 06:31:56 -07:00
2018-11-02 11:25:48 -07:00
2018-10-15 15:56:15 +02:00
2018-11-01 14:45:38 -07:00
2018-10-04 09:21:36 +05:30
2018-10-17 17:22:26 +02:00
2018-10-28 11:35:40 -07:00
2018-10-26 14:36:21 -07:00
2018-10-22 17:30:06 +01:00
2018-10-26 08:14:13 -07:00
2018-10-23 08:45:05 +01:00
2018-11-01 08:42:21 -07:00
2018-10-26 12:09:58 -07:00
2018-10-23 13:32:18 +01:00
2018-10-28 19:20:06 -07:00
2018-10-16 13:16:15 +02:00
2018-10-23 01:54:44 +01:00
2018-10-19 12:54:03 -07:00
2018-10-29 15:16:01 -07:00
2018-10-03 17:04:32 -07:00
2018-10-25 02:35:42 +02:00
2018-10-31 08:54:16 -07:00
2018-10-07 22:42:00 -07:00
2018-11-03 10:47:33 -07:00
2018-10-31 08:54:16 -07:00
2018-09-25 20:21:02 +02:00
2018-11-02 11:22:09 -07:00
2018-10-25 06:19:15 -07:00
2018-10-05 11:37:20 +03:00
2018-10-31 10:53:29 -07:00
2018-11-03 10:34:03 -07:00
2018-10-11 09:16:44 -07:00
2018-10-31 11:28:12 -07:00
2018-10-08 15:33:21 +02:00
2018-10-31 08:54:16 -07:00
2018-10-02 15:59:29 -07:00
2018-11-01 19:58:52 -07:00
2018-10-31 11:01:38 -07:00
2018-11-01 14:42:49 -07:00
2018-10-31 11:41:37 -07:00
2018-10-24 20:57:55 -04:00
2018-10-15 20:50:32 +02:00
2018-10-22 10:16:28 +02:00
2018-11-01 19:58:52 -07:00