static char boot_reason[16];
static int omap_bootreason_read_proc(char *page, char **start, off_t off,
- int count, int *eof, void *data)
+ int count, int *eof, void *data)
{
int len = 0;
{
const struct omap_boot_reason_config *cfg;
int reason_valid = 0;
-
+
cfg = omap_get_config(OMAP_TAG_BOOT_REASON, struct omap_boot_reason_config);
if (cfg != NULL) {
strncpy(boot_reason, cfg->reason_str, sizeof(cfg->reason_str));
printk(KERN_INFO "Bootup reason: %s\n", boot_reason);
if (!create_proc_read_entry("bootreason", S_IRUGO, NULL,
- omap_bootreason_read_proc, NULL))
+ omap_bootreason_read_proc, NULL))
return -ENOMEM;
return 0;
return 0;
}
-#ifdef CONFIG_PROC_FS
+#if defined(CONFIG_PM_DEBUG) && defined(CONFIG_PROC_FS)
#include <linux/proc_fs.h>
#include <linux/seq_file.h>
}
__initcall(omap_ck_init);
-#endif /* CONFIG_DEBUG_PROC_FS */
+#endif