diff options
Diffstat (limited to 'drivers/media/video/ir-kbd-i2c.c')
-rw-r--r-- | drivers/media/video/ir-kbd-i2c.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/ir-kbd-i2c.c b/drivers/media/video/ir-kbd-i2c.c index 124c502ea1f3..ca4027422e76 100644 --- a/drivers/media/video/ir-kbd-i2c.c +++ b/drivers/media/video/ir-kbd-i2c.c | |||
@@ -296,7 +296,7 @@ static int ir_attach(struct i2c_adapter *adap, int addr, | |||
296 | IR_KEYTAB_TYPE *ir_codes = NULL; | 296 | IR_KEYTAB_TYPE *ir_codes = NULL; |
297 | char *name; | 297 | char *name; |
298 | int ir_type; | 298 | int ir_type; |
299 | struct IR_i2c *ir; | 299 | struct IR_i2c *ir; |
300 | struct input_dev *input_dev; | 300 | struct input_dev *input_dev; |
301 | 301 | ||
302 | ir = kzalloc(sizeof(struct IR_i2c), GFP_KERNEL); | 302 | ir = kzalloc(sizeof(struct IR_i2c), GFP_KERNEL); |
@@ -304,7 +304,7 @@ static int ir_attach(struct i2c_adapter *adap, int addr, | |||
304 | if (!ir || !input_dev) { | 304 | if (!ir || !input_dev) { |
305 | kfree(ir); | 305 | kfree(ir); |
306 | input_free_device(input_dev); | 306 | input_free_device(input_dev); |
307 | return -ENOMEM; | 307 | return -ENOMEM; |
308 | } | 308 | } |
309 | 309 | ||
310 | ir->c = client_template; | 310 | ir->c = client_template; |