]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/media/video/cx88/cx88-vp3054-i2c.c
V4L/DVB (6021): cx88: Copy board information into card state
[linux-2.6-omap-h63xx.git] / drivers / media / video / cx88 / cx88-vp3054-i2c.c
index cd0877636a322faaedf9446e4deeffb9485681e8..f76ca9e2eebf6a4db23aa4257ebb231d934e6693 100644 (file)
@@ -111,7 +111,7 @@ int vp3054_i2c_probe(struct cx8802_dev *dev)
        struct vp3054_i2c_state *vp3054_i2c;
        int rc;
 
-       if (core->board != CX88_BOARD_DNTV_LIVE_DVB_T_PRO)
+       if (core->boardnr != CX88_BOARD_DNTV_LIVE_DVB_T_PRO)
                return 0;
 
        dev->card_priv = kzalloc(sizeof(*vp3054_i2c), GFP_KERNEL);
@@ -152,7 +152,7 @@ void vp3054_i2c_remove(struct cx8802_dev *dev)
        struct vp3054_i2c_state *vp3054_i2c = dev->card_priv;
 
        if (vp3054_i2c == NULL ||
-           dev->core->board != CX88_BOARD_DNTV_LIVE_DVB_T_PRO)
+           dev->core->boardnr != CX88_BOARD_DNTV_LIVE_DVB_T_PRO)
                return;
 
        i2c_del_adapter(&vp3054_i2c->adap);