• T
    media/video: explicitly flush request_module work · 707bcf32
    Tejun Heo 提交于
    Video drivers request submodules using a work during probe and calls
    flush_scheduled_work() on exit to make sure the work is complete
    before being unloaded.  This patch makes these drivers flush the work
    directly instead of using flush_scheduled_work().
    
    While at it, relocate request_submodules() call in saa7134_initdev()
    right right before successful return as in other drivers to avoid
    failing after the work is scheduled and returning failure without the
    work still active.
    
    This is in preparation for the deprecation of flush_scheduled_work().
    Signed-off-by: NTejun Heo <tj@kernel.org>
    Cc: Mauro Carvalho Chehab <mchehab@infradead.org>
    707bcf32
cx18-driver.c 37.9 KB