[media] media: pci: pt3: don't print error when adding adapter fails
authorWolfram Sang <wsa-dev@sang-engineering.com>
Tue, 9 Aug 2016 11:35:14 +0000 (08:35 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 24 Aug 2016 16:58:46 +0000 (13:58 -0300)
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>
drivers/media/pci/pt3/pt3.c

index eff5e9f..7fb649e 100644 (file)
@@ -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);