myri10ge: Stop scaring people when DCA is built but absent
authorBrice Goglin <brice@myri.com>
Fri, 12 Sep 2008 17:47:26 +0000 (19:47 +0200)
committerJeff Garzik <jgarzik@redhat.com>
Wed, 24 Sep 2008 22:54:45 +0000 (18:54 -0400)
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>
drivers/net/myri10ge/myri10ge.c

index d6524db321afe06c76eecce80bc3bee52e68355a..a1d82b0b467e607cbd5c3126910d98a9346101be 100644 (file)
@@ -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;