V4L/DVB (11844): ir-kbd-i2c: Switch to the new-style device binding model
[safe/jmp/linux-2.6] / drivers / media / video / cx231xx / cx231xx-cards.c
index c8a32b1..734f6ea 100644 (file)
@@ -281,13 +281,16 @@ static void cx231xx_config_tuner(struct cx231xx *dev)
 }
 
 /* ----------------------------------------------------------------------- */
-void cx231xx_set_ir(struct cx231xx *dev, struct IR_i2c *ir)
+void cx231xx_register_i2c_ir(struct cx231xx *dev)
 {
-       if (disable_ir) {
-               ir->get_key = NULL;
+       if (disable_ir)
                return;
-       }
 
+       /* REVISIT: instantiate IR device */
+}
+
+void cx231xx_set_ir(struct cx231xx *dev, struct IR_i2c *ir)
+{
        /* detect & configure */
        switch (dev->model) {