media: atomisp: pci: fix error return code in atomisp_pci_probe()
authorYang Yingliang <yangyingliang@huawei.com>
Thu, 17 Jun 2021 07:23:29 +0000 (09:23 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 22 Jul 2021 12:01:56 +0000 (14:01 +0200)
commitd14e272958bdfdc40dcafb827d24ba6fdafa9d52
treedfe3328a2e4e38a2ac71faffb840939072324c64
parent655ace3c74fbafe0c2d331109412c62cc56006a1
media: atomisp: pci: fix error return code in atomisp_pci_probe()

If init_atomisp_wdts() fails, atomisp_pci_probe() need return
error code.

Link: https://lore.kernel.org/linux-media/20210617072329.1233662-1-yangyingliang@huawei.com
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/atomisp/pci/atomisp_v4l2.c