summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/b2c2/skystar2.c
diff options
context:
space:
mode:
authorJohannes Stezenbach <devnull@localhost>2004-06-13 16:40:17 +0000
committerJohannes Stezenbach <devnull@localhost>2004-06-13 16:40:17 +0000
commit7698fbd817af0fab3a1c3fafab143453de0c9bb8 (patch)
treefa6234e6c39ade66e4c5d6c818b868e7fee93c22 /linux/drivers/media/dvb/b2c2/skystar2.c
parent317d656091ae6e1c0c6d752f64c640c55b07c4d1 (diff)
downloadmediapointer-dvb-s2-7698fbd817af0fab3a1c3fafab143453de0c9bb8.tar.gz
mediapointer-dvb-s2-7698fbd817af0fab3a1c3fafab143453de0c9bb8.tar.bz2
fix Oops when the bloody i2c eeprom driver probes the DVB I2C bus
Diffstat (limited to 'linux/drivers/media/dvb/b2c2/skystar2.c')
-rw-r--r--linux/drivers/media/dvb/b2c2/skystar2.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/linux/drivers/media/dvb/b2c2/skystar2.c b/linux/drivers/media/dvb/b2c2/skystar2.c
index bbb3e4506..d2a2bf350 100644
--- a/linux/drivers/media/dvb/b2c2/skystar2.c
+++ b/linux/drivers/media/dvb/b2c2/skystar2.c
@@ -2238,7 +2238,9 @@ int client_register(struct i2c_client *client)
dprintk("client_register\n");
- return client->driver->command(client, FE_REGISTER, adapter->dvb_adapter);
+ if (client->driver->command)
+ return client->driver->command(client, FE_REGISTER, adapter->dvb_adapter);
+ return 0;
}
int client_unregister(struct i2c_client *client)
@@ -2247,7 +2249,9 @@ int client_unregister(struct i2c_client *client)
dprintk("client_unregister\n");
- return client->driver->command(client, FE_UNREGISTER, adapter->dvb_adapter);
+ if (client->driver->command)
+ return client->driver->command(client, FE_UNREGISTER, adapter->dvb_adapter);
+ return 0;
}
static int flexcop_i2c_xfer(struct i2c_adapter *i2c_adapter, struct i2c_msg msg[], int num)