提交 21f706bb 编写于 作者: M Murali Karicheri 提交者: David S. Miller

net: netcp: support probe deferral

The netcp driver shouldn't proceed until the knav qmss and dma
devices are ready. So return -EPROBE_DEFER if these devices are not
ready.
Signed-off-by: NMurali Karicheri <m-karicheri2@ti.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 c52b6782
......@@ -2158,6 +2158,10 @@ static int netcp_probe(struct platform_device *pdev)
struct netcp_module *module;
int ret;
if (!knav_dma_device_ready() ||
!knav_qmss_device_ready())
return -EPROBE_DEFER;
if (!node) {
dev_err(dev, "could not find device info\n");
return -ENODEV;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册