Commit a89d713e authored by Todd Poynor's avatar Todd Poynor Committed by Tony Lindgren

[PATCH] ARM: OMAP: MUX dump stack on invalid request

OMAP MUX: dump stack on invalid requests if CONFIG_DEBUG_ERROR,
to show what code made the bad request.
Signed-off-by: default avatarTodd Poynor <tpoynor@mvista.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent 9cfe9b8f
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
#include <linux/config.h> #include <linux/config.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/init.h> #include <linux/init.h>
#include <linux/kernel.h>
#include <asm/system.h> #include <asm/system.h>
#include <asm/io.h> #include <asm/io.h>
#include <linux/spinlock.h> #include <linux/spinlock.h>
...@@ -70,6 +71,7 @@ int __init_or_module omap_cfg_reg(const unsigned long index) ...@@ -70,6 +71,7 @@ int __init_or_module omap_cfg_reg(const unsigned long index)
if (index >= pin_table_sz) { if (index >= pin_table_sz) {
printk(KERN_ERR "Invalid pin mux index: %lu (%lu)\n", printk(KERN_ERR "Invalid pin mux index: %lu (%lu)\n",
index, pin_table_sz); index, pin_table_sz);
dump_stack();
return -ENODEV; return -ENODEV;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment