Instead of breaking the entire thing, just WARN() about it. Signed-off-by: Felipe Balbi <balbi@xxxxxx> --- drivers/cbus/retu.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/cbus/retu.c b/drivers/cbus/retu.c index 5886b00..032864a 100644 --- a/drivers/cbus/retu.c +++ b/drivers/cbus/retu.c @@ -82,7 +82,7 @@ static struct retu *the_retu; */ int retu_read_reg(unsigned reg) { - BUG_ON(!the_retu); + WARN(!the_retu, "Retu not initialized\n"); return cbus_read_reg(RETU_ID, reg); } EXPORT_SYMBOL(retu_read_reg); @@ -96,7 +96,7 @@ EXPORT_SYMBOL(retu_read_reg); */ void retu_write_reg(unsigned reg, u16 val) { - BUG_ON(!the_retu); + WARN(!the_retu, "Retu not initialized\n"); cbus_write_reg(RETU_ID, reg, val); } EXPORT_SYMBOL(retu_write_reg); -- 1.7.4.rc2 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html