diff options
author | Brice Goglin <brice@myri.com> | 2008-09-12 19:47:26 +0200 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2008-09-24 18:54:45 -0400 |
commit | 330554cb9b666a9932785cc3391f3444293ef19b (patch) | |
tree | 83ca435a76d28cd2025d340e9474ed27ceda8f1f /drivers/net/myri10ge | |
parent | 7fb614bcc7136875c436a8866072fae23bbd2a0c (diff) | |
download | talos-op-linux-330554cb9b666a9932785cc3391f3444293ef19b.tar.gz talos-op-linux-330554cb9b666a9932785cc3391f3444293ef19b.zip |
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 <brice@myri.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/net/myri10ge')
-rw-r--r-- | drivers/net/myri10ge/myri10ge.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/myri10ge/myri10ge.c b/drivers/net/myri10ge/myri10ge.c index d6524db321af..a1d82b0b467e 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; |