提交 b325c98b 编写于 作者: W Wolfram Sang 提交者: Mauro Carvalho Chehab

[media] media: pci: pt3: don't print error when adding adapter fails

The core will do this for us now.
Signed-off-by: NWolfram Sang <wsa-dev@sang-engineering.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
上级 49cd08e6
......@@ -798,10 +798,8 @@ static int pt3_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
strlcpy(i2c->name, DRV_NAME, sizeof(i2c->name));
i2c_set_adapdata(i2c, pt3);
ret = i2c_add_adapter(i2c);
if (ret < 0) {
dev_err(&pdev->dev, "Failed to add i2c adapter\n");
if (ret < 0)
goto err_i2cbuf;
}
for (i = 0; i < PT3_NUM_FE; i++) {
ret = pt3_alloc_adapter(pt3, i);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册