diff options
author | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-03-02 11:26:14 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-03-02 11:29:39 -0300 |
commit | 89a2c1d60aa2cfcf4c9f194b4c923d72182be431 (patch) | |
tree | 7f459e266ff9e16a407f190cccc4180419828811 /drivers/media/common/siano | |
parent | 872b9dbedd4040f4511c909a09d39330624f057b (diff) | |
download | op-kernel-dev-89a2c1d60aa2cfcf4c9f194b4c923d72182be431.zip op-kernel-dev-89a2c1d60aa2cfcf4c9f194b4c923d72182be431.tar.gz |
[media] use a function for DVB media controller register
This is really a simple function, but using it avoids to have
if's inside the drivers.
Also, the kABI becomes a little more clearer.
This shouldn't generate any overhead, and the type check
will happen when compiling with MC DVB enabled.
So, let's do it.
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/common/siano')
-rw-r--r-- | drivers/media/common/siano/smsdvb-main.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/media/common/siano/smsdvb-main.c b/drivers/media/common/siano/smsdvb-main.c index c739725..367b8e7 100644 --- a/drivers/media/common/siano/smsdvb-main.c +++ b/drivers/media/common/siano/smsdvb-main.c @@ -1104,9 +1104,7 @@ static int smsdvb_hotplug(struct smscore_device_t *coredev, pr_err("dvb_register_adapter() failed %d\n", rc); goto adapter_error; } -#ifdef CONFIG_MEDIA_CONTROLLER_DVB - client->adapter.mdev = coredev->media_dev; -#endif + dvb_register_media_controller(&client->adapter, coredev->media_dev); /* init dvb demux */ client->demux.dmx.capabilities = DMX_TS_FILTERING; |