diff options
Diffstat (limited to 'meta-oe/recipes-kernel/compat-wireless/compat-wireless-all/0001-ath5k-fix-compilation-without-CONFIG_PCI.patch')
-rw-r--r-- | meta-oe/recipes-kernel/compat-wireless/compat-wireless-all/0001-ath5k-fix-compilation-without-CONFIG_PCI.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/meta-oe/recipes-kernel/compat-wireless/compat-wireless-all/0001-ath5k-fix-compilation-without-CONFIG_PCI.patch b/meta-oe/recipes-kernel/compat-wireless/compat-wireless-all/0001-ath5k-fix-compilation-without-CONFIG_PCI.patch new file mode 100644 index 0000000000..3a51266d08 --- /dev/null +++ b/meta-oe/recipes-kernel/compat-wireless/compat-wireless-all/0001-ath5k-fix-compilation-without-CONFIG_PCI.patch | |||
@@ -0,0 +1,33 @@ | |||
1 | From fb323acc0b01bcf1ecafb9330c4fbb41cf942139 Mon Sep 17 00:00:00 2001 | ||
2 | From: Denis 'GNUtoo' Carikli <GNUtoo@no-log.org> | ||
3 | Date: Wed, 18 Jul 2012 01:01:52 +0200 | ||
4 | Subject: [PATCH] ath5k: fix compilation without CONFIG_PCI | ||
5 | |||
6 | Without that fix we have: | ||
7 | [...]/drivers/net/wireless/ath/ath5k/led.c: In function 'ath5k_init_leds': | ||
8 | [...]/drivers/net/wireless/ath/ath5k/led.c:179:2: error: implicit declaration of function 'pci_match_id' [-Werror=implicit-function-declaration] | ||
9 | When CONFIG_PCI is not set. | ||
10 | |||
11 | Upstream-Status: Pending: Not submitted yet. | ||
12 | |||
13 | Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@no-log.org> | ||
14 | --- | ||
15 | drivers/net/wireless/ath/ath5k/led.c | 2 +- | ||
16 | 1 files changed, 1 insertions(+), 1 deletions(-) | ||
17 | |||
18 | diff --git a/drivers/net/wireless/ath/ath5k/led.c b/drivers/net/wireless/ath/ath5k/led.c | ||
19 | index c044476..a4de133 100644 | ||
20 | --- a/drivers/net/wireless/ath/ath5k/led.c | ||
21 | +++ b/drivers/net/wireless/ath/ath5k/led.c | ||
22 | @@ -173,7 +173,7 @@ int __devinit ath5k_init_leds(struct ath5k_hw *ah) | ||
23 | if (!ah->pdev) | ||
24 | return 0; | ||
25 | |||
26 | -#ifdef CONFIG_ATHEROS_AR231X | ||
27 | +#if defined(CONFIG_ATHEROS_AR231X) || !defined(CONFIG_PCI) | ||
28 | match = NULL; | ||
29 | #else | ||
30 | match = pci_match_id(&ath5k_led_devices[0], pdev); | ||
31 | -- | ||
32 | 1.7.4.1 | ||
33 | |||