Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 306543
b: refs/heads/master
c: f27b853
h: refs/heads/master
i:
  306541: 8f6ded5
  306539: 2508b8a
  306535: ba8617c
  306527: b0539f4
v: v3
  • Loading branch information
Ben Hutchings authored and Mauro Carvalho Chehab committed May 20, 2012
1 parent 27fc97c commit 89d826f
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 30 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 81cda577422b85f98efc350e2520f2a2dc5f3ddb
refs/heads/master: f27b853ea24a9b70585f9251384d97929e6551c3
13 changes: 6 additions & 7 deletions trunk/drivers/media/rc/fintek-cir.c
Original file line number Diff line number Diff line change
Expand Up @@ -556,11 +556,11 @@ static int fintek_probe(struct pnp_dev *pdev, const struct pnp_device_id *dev_id

if (request_irq(fintek->cir_irq, fintek_cir_isr, IRQF_SHARED,
FINTEK_DRIVER_NAME, (void *)fintek))
goto failure;
goto failure2;

ret = rc_register_device(rdev);
if (ret)
goto failure;
goto failure3;

device_init_wakeup(&pdev->dev, true);
fintek->rdev = rdev;
Expand All @@ -570,12 +570,11 @@ static int fintek_probe(struct pnp_dev *pdev, const struct pnp_device_id *dev_id

return 0;

failure3:
free_irq(fintek->cir_irq, fintek);
failure2:
release_region(fintek->cir_addr, fintek->cir_port_len);
failure:
if (fintek->cir_irq)
free_irq(fintek->cir_irq, fintek);
if (fintek->cir_addr)
release_region(fintek->cir_addr, fintek->cir_port_len);

rc_free_device(rdev);
kfree(fintek);

Expand Down
14 changes: 6 additions & 8 deletions trunk/drivers/media/rc/ite-cir.c
Original file line number Diff line number Diff line change
Expand Up @@ -1598,24 +1598,22 @@ static int ite_probe(struct pnp_dev *pdev, const struct pnp_device_id

if (request_irq(itdev->cir_irq, ite_cir_isr, IRQF_SHARED,
ITE_DRIVER_NAME, (void *)itdev))
goto failure;
goto failure2;

ret = rc_register_device(rdev);
if (ret)
goto failure;
goto failure3;

itdev->rdev = rdev;
ite_pr(KERN_NOTICE, "driver has been successfully loaded\n");

return 0;

failure3:
free_irq(itdev->cir_irq, itdev);
failure2:
release_region(itdev->cir_addr, itdev->params.io_region_size);
failure:
if (itdev->cir_irq)
free_irq(itdev->cir_irq, itdev);

if (itdev->cir_addr)
release_region(itdev->cir_addr, itdev->params.io_region_size);

rc_free_device(rdev);
kfree(itdev);

Expand Down
26 changes: 12 additions & 14 deletions trunk/drivers/media/rc/nuvoton-cir.c
Original file line number Diff line number Diff line change
Expand Up @@ -1075,19 +1075,19 @@ static int nvt_probe(struct pnp_dev *pdev, const struct pnp_device_id *dev_id)

if (request_irq(nvt->cir_irq, nvt_cir_isr, IRQF_SHARED,
NVT_DRIVER_NAME, (void *)nvt))
goto failure;
goto failure2;

if (!request_region(nvt->cir_wake_addr,
CIR_IOREG_LENGTH, NVT_DRIVER_NAME))
goto failure;
goto failure3;

if (request_irq(nvt->cir_wake_irq, nvt_cir_wake_isr, IRQF_SHARED,
NVT_DRIVER_NAME, (void *)nvt))
goto failure;
goto failure4;

ret = rc_register_device(rdev);
if (ret)
goto failure;
goto failure5;

device_init_wakeup(&pdev->dev, true);
nvt->rdev = rdev;
Expand All @@ -1099,17 +1099,15 @@ static int nvt_probe(struct pnp_dev *pdev, const struct pnp_device_id *dev_id)

return 0;

failure5:
free_irq(nvt->cir_wake_irq, nvt);
failure4:
release_region(nvt->cir_wake_addr, CIR_IOREG_LENGTH);
failure3:
free_irq(nvt->cir_irq, nvt);
failure2:
release_region(nvt->cir_addr, CIR_IOREG_LENGTH);
failure:
if (nvt->cir_irq)
free_irq(nvt->cir_irq, nvt);
if (nvt->cir_addr)
release_region(nvt->cir_addr, CIR_IOREG_LENGTH);

if (nvt->cir_wake_irq)
free_irq(nvt->cir_wake_irq, nvt);
if (nvt->cir_wake_addr)
release_region(nvt->cir_wake_addr, CIR_IOREG_LENGTH);

rc_free_device(rdev);
kfree(nvt);

Expand Down

0 comments on commit 89d826f

Please sign in to comment.