Merge branch 'for_linus' of git://git.infradead.org/~dedekind/ubifs-2.6
[pandora-kernel.git] / arch / mips / sgi-ip22 / ip22-platform.c
index 78b608d..fc6df96 100644 (file)
@@ -150,8 +150,8 @@ static int __init sgiseeq_devinit(void)
                return res;
 
        /* Second HPC is missing? */
-       if (ip22_is_fullhouse() ||
-           !get_dbe(tmp, (unsigned int *)&hpc3c1->pbdma[1]))
+       if (!ip22_is_fullhouse() ||
+           get_dbe(tmp, (unsigned int *)&hpc3c1->pbdma[1]))
                return 0;
 
        sgimc->giopar |= SGIMC_GIOPAR_MASTEREXP1 | SGIMC_GIOPAR_EXP164 |
@@ -175,3 +175,21 @@ 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);
+
+static int __init sgi_button_devinit(void)
+{
+       if (ip22_is_fullhouse())
+               return 0; /* full house has no volume buttons */
+
+       return IS_ERR(platform_device_register_simple("sgiindybtns",
+                                                     -1, NULL, 0));
+}
+
+device_initcall(sgi_button_devinit);