media: ddbridge: move ddb_wq and the wq+class initialisation to -core
authorDaniel Scheller <d.scheller@gmx.net>
Mon, 9 Apr 2018 16:47:37 +0000 (12:47 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 4 May 2018 14:30:57 +0000 (10:30 -0400)
commit05ed62da032afac412690c338fb9fa5063bfa4b8
treee8c719e677499c5a0ebfdcc5e174301e84769e60
parent5589974ecdd761758f5632e4441f4d11a96a74f5
media: ddbridge: move ddb_wq and the wq+class initialisation to -core

Move the ddbridge module initialisation and cleanup code to ddbridge-core
and set up the ddb_wq workqueue there, and create and destroy the ddb
device class there aswell. Due to this, the prototypes for ddb_wq,
ddb_class_create() and ddb_class_destroy() aren't required in ddbridge.h
anymore, so remove them. Also, declare ddb_wq and the ddb_class_*()
functions static.

Picked up from the upstream dddvb-0.9.33 release.

Signed-off-by: Daniel Scheller <d.scheller@gmx.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/pci/ddbridge/ddbridge-core.c
drivers/media/pci/ddbridge/ddbridge-main.c
drivers/media/pci/ddbridge/ddbridge.h