mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-30 19:06:14 +00:00
media: marvell-ccic: convert to use i2c_new_client_device()
Move away from the deprecated API and return the shiny new ERRPTR where useful. 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
b041cb6362
commit
03c87596b7
1 changed files with 1 additions and 1 deletions
|
@ -556,7 +556,7 @@ static int cafe_pci_probe(struct pci_dev *pdev,
|
||||||
clkdev_create(mcam->mclk, "xclk", "%d-%04x",
|
clkdev_create(mcam->mclk, "xclk", "%d-%04x",
|
||||||
i2c_adapter_id(cam->i2c_adapter), ov7670_info.addr);
|
i2c_adapter_id(cam->i2c_adapter), ov7670_info.addr);
|
||||||
|
|
||||||
if (i2c_new_device(cam->i2c_adapter, &ov7670_info)) {
|
if (!IS_ERR(i2c_new_client_device(cam->i2c_adapter, &ov7670_info))) {
|
||||||
cam->registered = 1;
|
cam->registered = 1;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue