diff options
Diffstat (limited to 'linux/drivers/media/dvb/b2c2')
-rw-r--r-- | linux/drivers/media/dvb/b2c2/skystar2.c | 8 |
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) |