]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blob - arch/arm/mach-omap2/board-n800-bt.c
Merge branch 'omap-fixes'
[linux-2.6-omap-h63xx.git] / arch / arm / mach-omap2 / board-n800-bt.c
1 /*
2  * Nokia N800 platform-specific data for Bluetooth
3  *
4  * Copyright (C) 2005, 2006 Nokia Corporation
5  * Contact: Ville Tervo <ville.tervo@nokia.com>
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * version 2 as published by the Free Software Foundation.
10  *
11  * This program is distributed in the hope that it will be useful, but
12  * WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
19  * 02110-1301 USA
20  */
21
22 #include <linux/kernel.h>
23 #include <linux/platform_device.h>
24 #include <mach/board.h>
25 #include <mach/board-nokia.h>
26
27 static struct platform_device n800_bt_device = {
28         .name           = "hci_h4p",
29         .id             = -1,
30         .num_resources  = 0,
31 };
32
33 void __init n800_bt_init(void)
34 {
35         const struct omap_bluetooth_config *bt_config;
36
37         bt_config = (void *) omap_get_config(OMAP_TAG_NOKIA_BT,
38                                              struct omap_bluetooth_config);
39         n800_bt_device.dev.platform_data = (void *) bt_config;
40         if (platform_device_register(&n800_bt_device) < 0)
41                 BUG();
42 }
43