From 92b645786dfcca202effc50a4b55c521133b5e72 Mon Sep 17 00:00:00 2001 From: Russ Meyerriecks Date: Thu, 16 Jul 2015 15:31:40 -0500 Subject: [PATCH] wcb4xxp: minor: Squelch initializing message on shutdown The hw init function gets called on a module remove in order to reset the hardware before shutdown. This was causing "Initializing zarlink echocan" to print on shutdown which could be confusing. Signed-off-by: Russ Meyerriecks --- drivers/dahdi/wcb4xxp/base.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/dahdi/wcb4xxp/base.c b/drivers/dahdi/wcb4xxp/base.c index 05c1170..7c55514 100644 --- a/drivers/dahdi/wcb4xxp/base.c +++ b/drivers/dahdi/wcb4xxp/base.c @@ -740,7 +740,8 @@ static void zl_init(struct b4xxp *b4) int i, offset; int group_addr[4] = {0x00, 0x40, 0x80, 0xc0}; - dev_info(&b4->pdev->dev, "Initializing Zarlink echocan\n"); + if (!b4->shutdown) + dev_info(&b4->pdev->dev, "Initializing Zarlink echocan\n"); /* There are 4 "groups" of echocans with two channels in each */ /* Main group control reg 0-3 */