summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/ttpci/av7110.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux/drivers/media/dvb/ttpci/av7110.c')
-rw-r--r--linux/drivers/media/dvb/ttpci/av7110.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/linux/drivers/media/dvb/ttpci/av7110.c b/linux/drivers/media/dvb/ttpci/av7110.c
index 6a872e519..aa9287350 100644
--- a/linux/drivers/media/dvb/ttpci/av7110.c
+++ b/linux/drivers/media/dvb/ttpci/av7110.c
@@ -1336,7 +1336,9 @@ int client_register(struct i2c_client *client)
struct av7110 *av7110 = (struct av7110*)dev->ext_priv;
/* fixme: check for "type" (ie. frontend type) */
- return client->driver->command(client, FE_REGISTER, av7110->dvb_adapter);
+ if (client->driver->command)
+ return client->driver->command(client, FE_REGISTER, av7110->dvb_adapter);
+ return 0;
}
int client_unregister(struct i2c_client *client)
@@ -1345,7 +1347,9 @@ int client_unregister(struct i2c_client *client)
struct av7110 *av7110 = (struct av7110*)dev->ext_priv;
/* fixme: check for "type" (ie. frontend type) */
- return client->driver->command(client, FE_UNREGISTER, av7110->dvb_adapter);
+ if (client->driver->command)
+ return client->driver->command(client, FE_UNREGISTER, av7110->dvb_adapter);
+ return 0;
}
static int av7110_attach(struct saa7146_dev* dev, struct saa7146_pci_extension_data *pci_ext)