drm/i2c: tda998x: move mutex/waitqueue/timer/work init early
authorRussell King <rmk+kernel@armlinux.org.uk>
Thu, 17 Nov 2016 23:38:29 +0000 (23:38 +0000)
committerRussell King <rmk+kernel@armlinux.org.uk>
Tue, 3 Apr 2018 11:21:54 +0000 (12:21 +0100)
commitd93ae190e2c95276caceb3642e6d541d93bba705
tree2fa8901191691c532f63d4030f84818edcce5a2f
parent0adb32858b0bddf4ada5f364a84ed60b196dbcda
drm/i2c: tda998x: move mutex/waitqueue/timer/work init early

Move the mutex, waitqueue, timer and detect work initialisation early
in the driver's initialisation, rather than being after we've registered
the CEC device.

Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
drivers/gpu/drm/i2c/tda998x_drv.c