]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit399317ba8b2103b07350008397b9a19f035ac65f
tree68f7a3f9f4deabb4a314625d512419e8f9733751
parent70c91715e218eb1dd7a90a32abcac48f10110c8f
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