summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/cx88/cx88-core.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2009-03-30 08:17:03 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-03-30 08:17:03 -0300
commitba50529dc5eb313e2709f555b9d29ec90e11e40f (patch)
tree9e8a265dda62ff51fbe79474213966a37ea11ecf /linux/drivers/media/video/cx88/cx88-core.c
parent6601c921cc0606a98bb649b3ebd524450c26cf6e (diff)
downloadmediapointer-dvb-s2-ba50529dc5eb313e2709f555b9d29ec90e11e40f.tar.gz
mediapointer-dvb-s2-ba50529dc5eb313e2709f555b9d29ec90e11e40f.tar.bz2
cx88: Fix compilation breakage for kernels older than 2.6.22
From: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux/drivers/media/video/cx88/cx88-core.c')
-rw-r--r--linux/drivers/media/video/cx88/cx88-core.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/linux/drivers/media/video/cx88/cx88-core.c b/linux/drivers/media/video/cx88/cx88-core.c
index ceaedf352..faee9d885 100644
--- a/linux/drivers/media/video/cx88/cx88-core.c
+++ b/linux/drivers/media/video/cx88/cx88-core.c
@@ -1088,11 +1088,13 @@ void cx88_core_put(struct cx88_core *core, struct pci_dev *pci)
mutex_lock(&devlist);
cx88_ir_fini(core);
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 22)
if (0 == core->i2c_rc) {
if (core->i2c_rtc)
i2c_unregister_device(core->i2c_rtc);
i2c_del_adapter(&core->i2c_adap);
}
+#endif
list_del(&core->devlist);
iounmap(core->lmmio);
cx88_devcount--;