kernel: disable bcma's usage of OF API in kernel 3.10
[openwrt.git] / target / linux / generic / patches-3.10 / 026-bcma-disable-OF-code.patch
1 From 527608f06505b2a014982dd8ac7c85d97af51510 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <zajec5@gmail.com>
3 Date: Sat, 31 Jan 2015 17:40:58 +0100
4 Subject: [PATCH] bcma: disable OF code
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
10 ---
11  drivers/bcma/main.c | 3 ++-
12  1 file changed, 2 insertions(+), 1 deletion(-)
13
14 diff --git a/drivers/bcma/main.c b/drivers/bcma/main.c
15 index c44b8d6..e64900f 100644
16 --- a/drivers/bcma/main.c
17 +++ b/drivers/bcma/main.c
18 @@ -124,7 +124,8 @@ static bool bcma_is_core_needed_early(u16 core_id)
19         return false;
20  }
21  
22 -#if defined(CONFIG_OF) && defined(CONFIG_OF_ADDRESS)
23 +/* Backported code requires OF API from kernel 3.13 at least. */
24 +#if 0
25  static struct device_node *bcma_of_find_child_device(struct platform_device *parent,
26                                                      struct bcma_device *core)
27  {
28 -- 
29 1.8.4.5
30