diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2011-12-22 05:29:34 (GMT) |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-01-06 13:06:53 (GMT) |
commit | aecf33db58cbcb40299a7630b3b6c89aa126fcb6 (patch) | |
tree | 0804cb1ca0fbf7c9499097d95e0bd505e2d9ee81 | |
parent | 527f18be2d69db4752e5b7f227548a075a37749b (diff) | |
download | linux-fsl-qoriq-aecf33db58cbcb40299a7630b3b6c89aa126fcb6.tar.xz |
[media] Staging: dt3155v4l: probe() always fails
There were some curly braces missing so the probe() function always
failed.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r-- | drivers/staging/media/dt3155v4l/dt3155v4l.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/media/dt3155v4l/dt3155v4l.c b/drivers/staging/media/dt3155v4l/dt3155v4l.c index 25c6025..280c84e 100644 --- a/drivers/staging/media/dt3155v4l/dt3155v4l.c +++ b/drivers/staging/media/dt3155v4l/dt3155v4l.c @@ -908,9 +908,10 @@ dt3155_probe(struct pci_dev *pdev, const struct pci_device_id *id) if (err) goto err_req_region; pd->regs = pci_iomap(pdev, 0, pci_resource_len(pd->pdev, 0)); - if (!pd->regs) + if (!pd->regs) { err = -ENOMEM; goto err_pci_iomap; + } err = dt3155_init_board(pdev); if (err) goto err_init_board; |