mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-26 23:10:50 +07:00
[media] media: pci: pt3: don't print error when adding adapter fails
The core will do this for us now. Signed-off-by: Wolfram Sang <wsa-dev@sang-engineering.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
parent
49cd08e699
commit
b325c98b90
@ -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));
|
strlcpy(i2c->name, DRV_NAME, sizeof(i2c->name));
|
||||||
i2c_set_adapdata(i2c, pt3);
|
i2c_set_adapdata(i2c, pt3);
|
||||||
ret = i2c_add_adapter(i2c);
|
ret = i2c_add_adapter(i2c);
|
||||||
if (ret < 0) {
|
if (ret < 0)
|
||||||
dev_err(&pdev->dev, "Failed to add i2c adapter\n");
|
|
||||||
goto err_i2cbuf;
|
goto err_i2cbuf;
|
||||||
}
|
|
||||||
|
|
||||||
for (i = 0; i < PT3_NUM_FE; i++) {
|
for (i = 0; i < PT3_NUM_FE; i++) {
|
||||||
ret = pt3_alloc_adapter(pt3, i);
|
ret = pt3_alloc_adapter(pt3, i);
|
||||||
|
Loading…
Reference in New Issue
Block a user