From e37f54bc3d60def9b8154f5c217d4645b3872d6e Mon Sep 17 00:00:00 2001 From: Kenneth Aafloy Date: Mon, 23 Aug 2004 14:30:34 +0000 Subject: - Fix `I2C_CLASS_TV_DIGITAL' undeclared for SuSE 9.x? --- linux/drivers/media/dvb/b2c2/skystar2.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'linux/drivers/media/dvb/b2c2') 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; -- cgit v1.2.3