aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWolfram Sang <wsa-dev@sang-engineering.com>2016-08-09 07:35:14 -0400
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2016-08-24 12:58:46 -0400
commitb325c98b90e22402be1524db810107508a6edfe6 (patch)
tree00c41bcccdf862c7428d5a0e42a1aea7c2adccf2
parent49cd08e699c3fca1262fccd3826c7c17f2292bf1 (diff)
[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>
-rw-r--r--drivers/media/pci/pt3/pt3.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/media/pci/pt3/pt3.c b/drivers/media/pci/pt3/pt3.c
index eff5e9f51ace..7fb649e523f4 100644
--- a/drivers/media/pci/pt3/pt3.c
+++ b/drivers/media/pci/pt3/pt3.c
@@ -798,10 +798,8 @@ static int pt3_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
798 strlcpy(i2c->name, DRV_NAME, sizeof(i2c->name)); 798 strlcpy(i2c->name, DRV_NAME, sizeof(i2c->name));
799 i2c_set_adapdata(i2c, pt3); 799 i2c_set_adapdata(i2c, pt3);
800 ret = i2c_add_adapter(i2c); 800 ret = i2c_add_adapter(i2c);
801 if (ret < 0) { 801 if (ret < 0)
802 dev_err(&pdev->dev, "Failed to add i2c adapter\n");
803 goto err_i2cbuf; 802 goto err_i2cbuf;
804 }
805 803
806 for (i = 0; i < PT3_NUM_FE; i++) { 804 for (i = 0; i < PT3_NUM_FE; i++) {
807 ret = pt3_alloc_adapter(pt3, i); 805 ret = pt3_alloc_adapter(pt3, i);