media: pci: saa7134: convert to use i2c_new_client_device()
Move away from the deprecated API. Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
parent
286e78a9b5
commit
b041cb6362
@ -982,7 +982,7 @@ void saa7134_probe_i2c_ir(struct saa7134_dev *dev)
|
||||
|
||||
if (dev->init_data.name)
|
||||
info.platform_data = &dev->init_data;
|
||||
i2c_new_device(&dev->i2c_adap, &info);
|
||||
i2c_new_client_device(&dev->i2c_adap, &info);
|
||||
}
|
||||
|
||||
static int saa7134_raw_decode_irq(struct saa7134_dev *dev)
|
||||
|
Loading…
Reference in New Issue
Block a user