diff options
Diffstat (limited to 'extras/recipes-kernel/linux/linux-omap/0002-board-omap3beagle-allow-for-building-without-wl1271.patch')
-rw-r--r-- | extras/recipes-kernel/linux/linux-omap/0002-board-omap3beagle-allow-for-building-without-wl1271.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/extras/recipes-kernel/linux/linux-omap/0002-board-omap3beagle-allow-for-building-without-wl1271.patch b/extras/recipes-kernel/linux/linux-omap/0002-board-omap3beagle-allow-for-building-without-wl1271.patch new file mode 100644 index 00000000..51978e2b --- /dev/null +++ b/extras/recipes-kernel/linux/linux-omap/0002-board-omap3beagle-allow-for-building-without-wl1271.patch | |||
@@ -0,0 +1,42 @@ | |||
1 | From 1b9bc1583d882866d64420df39bf5df4bce22bd6 Mon Sep 17 00:00:00 2001 | ||
2 | Message-Id: <1b9bc1583d882866d64420df39bf5df4bce22bd6.1307392642.git.dvhart@linux.intel.com> | ||
3 | In-Reply-To: <e5e52482147151aaaafbd388d1e5978268e51d24.1307392642.git.dvhart@linux.intel.com> | ||
4 | References: <e5e52482147151aaaafbd388d1e5978268e51d24.1307392642.git.dvhart@linux.intel.com> | ||
5 | From: Darren Hart <dvhart@linux.intel.com> | ||
6 | Date: Mon, 6 Jun 2011 10:19:00 -0700 | ||
7 | Subject: [PATCH 2/2] board-omap3beagle: allow for building without wl1271 | ||
8 | |||
9 | While the header file wl12xx.h is ifdef'd to include if the wl1271 driver is | ||
10 | built, the init routine calls into it regardless. Ideally, the module would | ||
11 | perform its own initialization at load time and we wouldn't need to ifdef these | ||
12 | calls in the general board initialization. For now, follow the existing practice | ||
13 | in this file and ifdef the wl1271 init block. | ||
14 | |||
15 | Signed-off-by: Darren Hart <dvhart@linux.intel.com> | ||
16 | --- | ||
17 | arch/arm/mach-omap2/board-omap3beagle.c | 2 ++ | ||
18 | 1 files changed, 2 insertions(+), 0 deletions(-) | ||
19 | |||
20 | diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c | ||
21 | index b618cb6..caaed82 100644 | ||
22 | --- a/arch/arm/mach-omap2/board-omap3beagle.c | ||
23 | +++ b/arch/arm/mach-omap2/board-omap3beagle.c | ||
24 | @@ -937,6 +937,7 @@ static void __init omap3_beagle_init(void) | ||
25 | gpio_export(162, 1); | ||
26 | } | ||
27 | |||
28 | +#if defined(CONFIG_WL1271) || defined(CONFIG_WL1271_MODULE) | ||
29 | if(!strcmp(expansionboard_name, "bbtoys-wifi")) | ||
30 | { | ||
31 | if (wl12xx_set_platform_data(&omap_beagle_wlan_data)) | ||
32 | @@ -944,6 +945,7 @@ static void __init omap3_beagle_init(void) | ||
33 | printk(KERN_INFO "Beagle expansionboard: registering wl12xx platform device\n"); | ||
34 | platform_device_register(&omap_vwlan_device); | ||
35 | } | ||
36 | +#endif | ||
37 | |||
38 | usb_musb_init(&musb_board_data); | ||
39 | usb_ehci_init(&ehci_pdata); | ||
40 | -- | ||
41 | 1.7.1 | ||
42 | |||