]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ARM: OMAP1: Misc fixes based on RMK's comments
authorTony Lindgren <tony@atomide.com>
Tue, 15 Jan 2008 01:26:58 +0000 (17:26 -0800)
committerTony Lindgren <tony@atomide.com>
Tue, 15 Jan 2008 01:26:58 +0000 (17:26 -0800)
Misc fixes based on RMK's comments for omap1-upstream
series.

Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap1/board-palmte.c
arch/arm/mach-omap1/pm.c

index ccd83cf0564cc3f2b8e93e1194bd9ff6e7a1ee2d..63c3131dbc6278bf00dc5ca4054ff041e429f7da 100644 (file)
@@ -342,7 +342,8 @@ static struct spi_board_info palmte_spi_info[] __initdata = {
        },
 };
 
-static void palmte_headphones_detect(void *data, int state) {
+static void palmte_headphones_detect(void *data, int state)
+{
        if (state) {
                /* Headphones connected, disable speaker */
                omap_set_gpio_dataout(PALMTE_SPEAKER_GPIO, 0);
index 4da18b869d60b213cd01fbfcfa3faa0a3b243b17..c9c6d96c0c161306b11b5eb96fc9b0a97f0520ed 100644 (file)
@@ -659,7 +659,7 @@ static struct irqaction omap_wakeup_irq = {
 
 
 
-static struct platform_suspend_ops omap_pm_ops ={
+static struct platform_suspend_ops omap_pm_ops = {
        .prepare        = omap_pm_prepare,
        .enter          = omap_pm_enter,
        .finish         = omap_pm_finish,
@@ -668,6 +668,11 @@ static struct platform_suspend_ops omap_pm_ops ={
 
 static int __init omap_pm_init(void)
 {
+
+#ifdef CONFIG_OMAP_32K_TIMER
+       int error;
+#endif
+
        printk("Power Management for TI OMAP.\n");
 
        /*
@@ -719,8 +724,9 @@ static int __init omap_pm_init(void)
 #endif
 
 #ifdef CONFIG_OMAP_32K_TIMER
-       if (subsys_create_file(&power_subsys, &sleep_while_idle_attr))
-               printk(KERN_ERR "%s :subsys_create_file failed", __FUNCTION__);
+       error = subsys_create_file(&power_subsys, &sleep_while_idle_attr);
+       if (error)
+               printk(KERN_ERR "subsys_create_file failed: %d\n", error);
 #endif
 
        if (cpu_is_omap16xx()) {