]> Pileus Git - ~andy/linux/blobdiff - drivers/media/video/ir-kbd-i2c.c
[media] ir-core: remove remaining users of the ir-functions keyhandlers
[~andy/linux] / drivers / media / video / ir-kbd-i2c.c
index ce4a75375909b6872e7860f55bc1d66d3e90a414..a78883a6e0e727b1047dbdfddc4820ecd266221e 100644 (file)
@@ -269,7 +269,7 @@ static int ir_probe(struct i2c_client *client, const struct i2c_device_id *id)
 {
        char *ir_codes = NULL;
        const char *name = NULL;
-       u64 ir_type = 0;
+       u64 ir_type = IR_TYPE_UNKNOWN;
        struct IR_i2c *ir;
        struct input_dev *input_dev;
        struct i2c_adapter *adap = client->adapter;
@@ -383,7 +383,6 @@ static int ir_probe(struct i2c_client *client, const struct i2c_device_id *id)
                 dev_name(&client->dev));
 
        /* init + register input device */
-       ir->ir_type = ir_type;
        input_dev->id.bustype = BUS_I2C;
        input_dev->name       = ir->name;
        input_dev->phys       = ir->phys;