summaryrefslogtreecommitdiff
path: root/linux/drivers
diff options
context:
space:
mode:
authorKenneth Aafloy <devnull@localhost>2004-08-23 14:30:34 +0000
committerKenneth Aafloy <devnull@localhost>2004-08-23 14:30:34 +0000
commite37f54bc3d60def9b8154f5c217d4645b3872d6e (patch)
treea2fabdde8a1b33cd81ca88c15111ed2baa695422 /linux/drivers
parent8e2938babfe564a2cdb2909238937b1a4f9f11e9 (diff)
downloadmediapointer-dvb-s2-e37f54bc3d60def9b8154f5c217d4645b3872d6e.tar.gz
mediapointer-dvb-s2-e37f54bc3d60def9b8154f5c217d4645b3872d6e.tar.bz2
- Fix `I2C_CLASS_TV_DIGITAL' undeclared for SuSE 9.x?
Diffstat (limited to 'linux/drivers')
-rw-r--r--linux/drivers/media/dvb/b2c2/skystar2.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/linux/drivers/media/dvb/b2c2/skystar2.c b/linux/drivers/media/dvb/b2c2/skystar2.c
index 30e9e07c5..848ac4a2c 100644
--- a/linux/drivers/media/dvb/b2c2/skystar2.c
+++ b/linux/drivers/media/dvb/b2c2/skystar2.c
@@ -2309,7 +2309,11 @@ static int skystar2_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
i2c_set_adapdata(&adapter->i2c_adap, adapter);
+#ifdef I2C_ADAP_CLASS_TV_DIGITAL
+ adapter->i2c_adap.class = I2C_ADAP_CLASS_TV_DIGITAL;
+#else
adapter->i2c_adap.class = I2C_CLASS_TV_DIGITAL;
+#endif
adapter->i2c_adap.algo = &flexcop_algo;
adapter->i2c_adap.algo_data = NULL;
adapter->i2c_adap.id = I2C_ALGO_BIT;