Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 357121
b: refs/heads/master
c: 2f5741a
h: refs/heads/master
i:
  357119: 23e2d64
v: v3
  • Loading branch information
Frank Schaefer authored and Mauro Carvalho Chehab committed Dec 22, 2012
1 parent 1452c50 commit ebc0e87
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 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: 0dae88392395e228e67436cd08f084d395b39df5
refs/heads/master: 2f5741aa6a71aea6bc8f186e8753f270ae8742f1
11 changes: 5 additions & 6 deletions trunk/drivers/media/usb/em28xx/em28xx-input.c
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ static int em28xx_ir_init(struct em28xx *dev)
ir = kzalloc(sizeof(*ir), GFP_KERNEL);
rc = rc_allocate_device();
if (!ir || !rc)
goto err_out_free;
goto error;

/* record handles to ourself */
ir->dev = dev;
Expand Down Expand Up @@ -629,14 +629,14 @@ static int em28xx_ir_init(struct em28xx *dev)
break;
default:
err = -ENODEV;
goto err_out_free;
goto error;
}

/* By default, keep protocol field untouched */
rc_type = RC_BIT_UNKNOWN;
err = em28xx_ir_change_protocol(rc, &rc_type);
if (err)
goto err_out_free;
goto error;

/* This is how often we ask the chip for IR information */
ir->polling = 100; /* ms */
Expand All @@ -661,7 +661,7 @@ static int em28xx_ir_init(struct em28xx *dev)
/* all done */
err = rc_register_device(rc);
if (err)
goto err_out_stop;
goto error;

em28xx_register_i2c_ir(dev);

Expand All @@ -674,9 +674,8 @@ static int em28xx_ir_init(struct em28xx *dev)

return 0;

err_out_stop:
error:
dev->ir = NULL;
err_out_free:
rc_free_device(rc);
kfree(ir);
return err;
Expand Down

0 comments on commit ebc0e87

Please sign in to comment.