]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[MIPS] IP22/28: Add platform devices for HAL2
authorThomas Bogendoerfer <tsbogend@alpha.franken.de>
Thu, 10 Jul 2008 18:29:55 +0000 (20:29 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 15 Jul 2008 17:44:36 +0000 (18:44 +0100)
Create platform devices for hal2 and add option for selecting HAL2 alsa
driver.

Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/Kconfig
arch/mips/sgi-ip22/ip22-platform.c

index 72baa1a70fcbcd354030ce32fc577f31c128e1ba..d23204e29e16a12411896059849927c42199889a 100644 (file)
@@ -385,6 +385,8 @@ config SGI_IP28
        select SGI_HAS_DS1286
        select SGI_HAS_I8042
        select SGI_HAS_INDYDOG
+       select SGI_HAS_HAL2
+       select SGI_HAS_HAL2
        select SGI_HAS_SEEQ
        select SGI_HAS_WD93
        select SGI_HAS_ZILOG
@@ -868,6 +870,9 @@ config SGI_HAS_DS1286
 config SGI_HAS_INDYDOG
        bool
 
+config SGI_HAS_HAL2
+       bool
+
 config SGI_HAS_SEEQ
        bool
 
index 28ffec8e5d1ae9d26f34904f6bb54146e8a294f9..d93d07a8c317a304d6f839a7ea3ed7d12a7fd339 100644 (file)
@@ -175,3 +175,10 @@ static int __init sgiseeq_devinit(void)
 }
 
 device_initcall(sgiseeq_devinit);
+
+static int __init sgi_hal2_devinit(void)
+{
+       return IS_ERR(platform_device_register_simple("sgihal2", 0, NULL, 0));
+}
+
+device_initcall(sgi_hal2_devinit);