]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] ARM: OMAP: MUX dump stack on invalid request
authorTodd Poynor <tpoynor@mvista.com>
Thu, 3 Nov 2005 23:47:39 +0000 (15:47 -0800)
committerTony Lindgren <tony@atomide.com>
Thu, 3 Nov 2005 23:47:39 +0000 (15:47 -0800)
OMAP MUX: dump stack on invalid requests if CONFIG_DEBUG_ERROR,
to show what code made the bad request.

Signed-off-by: Todd Poynor <tpoynor@mvista.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/plat-omap/mux.c

index db12f2269532c1997ce2d03a8ee8d1c51f28dbe6..8c1c016aa68980db04bdcb1704d9df58308cf63c 100644 (file)
@@ -25,6 +25,7 @@
 #include <linux/config.h>
 #include <linux/module.h>
 #include <linux/init.h>
+#include <linux/kernel.h>
 #include <asm/system.h>
 #include <asm/io.h>
 #include <linux/spinlock.h>
@@ -70,6 +71,7 @@ int __init_or_module omap_cfg_reg(const unsigned long index)
        if (index >= pin_table_sz) {
                printk(KERN_ERR "Invalid pin mux index: %lu (%lu)\n",
                       index, pin_table_sz);
+               dump_stack();
                return -ENODEV;
        }