diff options
Diffstat (limited to 'drivers/media/video/ir-kbd-i2c.c')
-rw-r--r-- | drivers/media/video/ir-kbd-i2c.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/media/video/ir-kbd-i2c.c b/drivers/media/video/ir-kbd-i2c.c index ca4027422e76..52c54b15fd4a 100644 --- a/drivers/media/video/ir-kbd-i2c.c +++ b/drivers/media/video/ir-kbd-i2c.c | |||
@@ -40,6 +40,7 @@ | |||
40 | #include <linux/i2c.h> | 40 | #include <linux/i2c.h> |
41 | #include <linux/workqueue.h> | 41 | #include <linux/workqueue.h> |
42 | #include <asm/semaphore.h> | 42 | #include <asm/semaphore.h> |
43 | |||
43 | #include <media/ir-common.h> | 44 | #include <media/ir-common.h> |
44 | #include <media/ir-kbd-i2c.h> | 45 | #include <media/ir-kbd-i2c.h> |
45 | 46 | ||
@@ -299,7 +300,7 @@ static int ir_attach(struct i2c_adapter *adap, int addr, | |||
299 | struct IR_i2c *ir; | 300 | struct IR_i2c *ir; |
300 | struct input_dev *input_dev; | 301 | struct input_dev *input_dev; |
301 | 302 | ||
302 | ir = kzalloc(sizeof(struct IR_i2c), GFP_KERNEL); | 303 | ir = kzalloc(sizeof(struct IR_i2c),GFP_KERNEL); |
303 | input_dev = input_allocate_device(); | 304 | input_dev = input_allocate_device(); |
304 | if (!ir || !input_dev) { | 305 | if (!ir || !input_dev) { |
305 | kfree(ir); | 306 | kfree(ir); |
@@ -360,7 +361,7 @@ static int ir_attach(struct i2c_adapter *adap, int addr, | |||
360 | /* register i2c device | 361 | /* register i2c device |
361 | * At device register, IR codes may be changed to be | 362 | * At device register, IR codes may be changed to be |
362 | * board dependent. | 363 | * board dependent. |
363 | */ | 364 | */ |
364 | i2c_attach_client(&ir->c); | 365 | i2c_attach_client(&ir->c); |
365 | 366 | ||
366 | /* If IR not supported or disabled, unregisters driver */ | 367 | /* If IR not supported or disabled, unregisters driver */ |