You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
[media] media: pci: netup_unidvb: 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> Acked-by: Abylay Ospan <aospan@netup.ru> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
b956fb2d2e
commit
38e699bc79
@@ -327,11 +327,8 @@ static int netup_i2c_init(struct netup_unidvb_dev *ndev, int bus_num)
|
|||||||
i2c->adap.dev.parent = &ndev->pci_dev->dev;
|
i2c->adap.dev.parent = &ndev->pci_dev->dev;
|
||||||
i2c_set_adapdata(&i2c->adap, i2c);
|
i2c_set_adapdata(&i2c->adap, i2c);
|
||||||
ret = i2c_add_adapter(&i2c->adap);
|
ret = i2c_add_adapter(&i2c->adap);
|
||||||
if (ret) {
|
if (ret)
|
||||||
dev_err(&ndev->pci_dev->dev,
|
|
||||||
"%s(): failed to add I2C adapter\n", __func__);
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
|
||||||
dev_info(&ndev->pci_dev->dev,
|
dev_info(&ndev->pci_dev->dev,
|
||||||
"%s(): registered I2C bus %d at 0x%x\n",
|
"%s(): registered I2C bus %d at 0x%x\n",
|
||||||
__func__,
|
__func__,
|
||||||
|
|||||||
Reference in New Issue
Block a user