diff options
author | Brice Goglin <brice@myri.com> | 2008-09-12 13:47:26 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2008-09-24 18:54:45 -0400 |
commit | 330554cb9b666a9932785cc3391f3444293ef19b (patch) | |
tree | 83ca435a76d28cd2025d340e9474ed27ceda8f1f /drivers | |
parent | 7fb614bcc7136875c436a8866072fae23bbd2a0c (diff) |
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')
-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) | |||
1060 | } | 1060 | } |
1061 | err = dca_add_requester(&pdev->dev); | 1061 | err = dca_add_requester(&pdev->dev); |
1062 | if (err) { | 1062 | if (err) { |
1063 | dev_err(&pdev->dev, | 1063 | if (err != -ENODEV) |
1064 | "dca_add_requester() failed, err=%d\n", err); | 1064 | dev_err(&pdev->dev, |
1065 | "dca_add_requester() failed, err=%d\n", err); | ||
1065 | return; | 1066 | return; |
1066 | } | 1067 | } |
1067 | mgp->dca_enabled = 1; | 1068 | mgp->dca_enabled = 1; |