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>
This commit is contained in:
parent
7fb614bcc7
commit
330554cb9b
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue