From: Brice Goglin Date: Fri, 12 Sep 2008 17:47:26 +0000 (+0200) Subject: myri10ge: Stop scaring people when DCA is built but absent X-Git-Tag: v2.6.28-rc1~717^2~195^2~40 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=330554cb9b666a9932785cc3391f3444293ef19b;p=linux-2.6-omap-h63xx.git myri10ge: Stop scaring people when DCA is built but absent Stop scaring people with what looks like a fatal message when DCA support is compiled into their kernel, but the DCA device is not present. Signed-off-by: Brice Goglin Signed-off-by: Jeff Garzik --- diff --git a/drivers/net/myri10ge/myri10ge.c b/drivers/net/myri10ge/myri10ge.c index d6524db321a..a1d82b0b467 100644 --- a/drivers/net/myri10ge/myri10ge.c +++ b/drivers/net/myri10ge/myri10ge.c @@ -1060,8 +1060,9 @@ static void myri10ge_setup_dca(struct myri10ge_priv *mgp) } err = dca_add_requester(&pdev->dev); if (err) { - dev_err(&pdev->dev, - "dca_add_requester() failed, err=%d\n", err); + if (err != -ENODEV) + dev_err(&pdev->dev, + "dca_add_requester() failed, err=%d\n", err); return; } mgp->dca_enabled = 1;