From: Todd Poynor Date: Thu, 3 Nov 2005 23:47:39 +0000 (-0800) Subject: [PATCH] ARM: OMAP: MUX dump stack on invalid request X-Git-Tag: v2.6.15-omap2~110 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=a89d713e3f52c165d03e2557e17021e206273f12;p=linux-2.6-omap-h63xx.git [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: Todd Poynor Signed-off-by: Tony Lindgren --- diff --git a/arch/arm/plat-omap/mux.c b/arch/arm/plat-omap/mux.c index db12f226953..8c1c016aa68 100644 --- a/arch/arm/plat-omap/mux.c +++ b/arch/arm/plat-omap/mux.c @@ -25,6 +25,7 @@ #include #include #include +#include #include #include #include @@ -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; }