summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/ttpci
diff options
context:
space:
mode:
Diffstat (limited to 'linux/drivers/media/dvb/ttpci')
-rw-r--r--linux/drivers/media/dvb/ttpci/av7110.c8
-rw-r--r--linux/drivers/media/dvb/ttpci/budget-core.c8
2 files changed, 12 insertions, 4 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)
diff --git a/linux/drivers/media/dvb/ttpci/budget-core.c b/linux/drivers/media/dvb/ttpci/budget-core.c
index 85bb4a9d1..d0dfd9990 100644
--- a/linux/drivers/media/dvb/ttpci/budget-core.c
+++ b/linux/drivers/media/dvb/ttpci/budget-core.c
@@ -271,7 +271,9 @@ int client_register(struct i2c_client *client)
struct saa7146_dev *dev = (struct saa7146_dev*)i2c_get_adapdata(client->adapter);
struct budget *budget = (struct budget*)dev->ext_priv;
- return client->driver->command(client, FE_REGISTER, budget->dvb_adapter);
+ if (client->driver->command)
+ return client->driver->command(client, FE_REGISTER, budget->dvb_adapter);
+ return 0;
}
int client_unregister(struct i2c_client *client)
@@ -279,7 +281,9 @@ int client_unregister(struct i2c_client *client)
struct saa7146_dev *dev = (struct saa7146_dev*)i2c_get_adapdata(client->adapter);
struct budget *budget = (struct budget*)dev->ext_priv;
- return client->driver->command(client, FE_UNREGISTER, budget->dvb_adapter);
+ if (client->driver->command)
+ return client->driver->command(client, FE_UNREGISTER, budget->dvb_adapter);
+ return 0;
}
int ttpci_budget_init (struct budget *budget,