From a89d713e3f52c165d03e2557e17021e206273f12 Mon Sep 17 00:00:00 2001 From: Todd Poynor Date: Thu, 3 Nov 2005 15:47:39 -0800 Subject: [PATCH] [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 --- arch/arm/plat-omap/mux.c | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.41.1