Commit aecf33db authored by Dan Carpenter's avatar Dan Carpenter Committed by Mauro Carvalho Chehab

[media] Staging: dt3155v4l: probe() always fails

There were some curly braces missing so the probe() function always
failed.
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 527f18be
...@@ -908,9 +908,10 @@ dt3155_probe(struct pci_dev *pdev, const struct pci_device_id *id) ...@@ -908,9 +908,10 @@ dt3155_probe(struct pci_dev *pdev, const struct pci_device_id *id)
if (err) if (err)
goto err_req_region; goto err_req_region;
pd->regs = pci_iomap(pdev, 0, pci_resource_len(pd->pdev, 0)); pd->regs = pci_iomap(pdev, 0, pci_resource_len(pd->pdev, 0));
if (!pd->regs) if (!pd->regs) {
err = -ENOMEM; err = -ENOMEM;
goto err_pci_iomap; goto err_pci_iomap;
}
err = dt3155_init_board(pdev); err = dt3155_init_board(pdev);
if (err) if (err)
goto err_init_board; goto err_init_board;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment