media: dvbsky: use the new dvb_module_probe() API
authorMauro Carvalho Chehab <mchehab@s-opensource.com>
Thu, 8 Mar 2018 18:47:38 +0000 (13:47 -0500)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 4 May 2018 14:54:39 +0000 (10:54 -0400)
commit2c7e3ca8fb1b5cda5387686e2da2931ec62b1ada
tree68f7a3f9f4deabb4a314625d512419e8f9733751
parentedcc30820bec5533d9cbd39f47cff1b5800aed39
media: dvbsky: use the new dvb_module_probe() API

Instead of repeating countless times a complex logic, use
the new dvb_module_probe()/dvb_module_release(), simplifying
the module.

That reduced about 15% at the module's size:

   text    data     bss     dec     hex filename
   7083    1108      12    8203    200b old/drivers/media/usb/dvb-usb-v2/dvbsky.o
   5817    1108      12    6937    1b19 new/drivers/media/usb/dvb-usb-v2/dvbsky.o

Tested with a DVBSky S960C DVB-S2 tuner (0572:960c)

Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/usb/dvb-usb-v2/dvbsky.c