},
};
-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);
-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,
static int __init omap_pm_init(void)
{
+
+#ifdef CONFIG_OMAP_32K_TIMER
+ int error;
+#endif
+
printk("Power Management for TI OMAP.\n");
/*
#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()) {