]> git.baikalelectronics.ru Git - kernel.git/commit
imx-drm: ipu-v3: fix potential CRTC device registration race
authorRussell King <rmk+kernel@arm.linux.org.uk>
Mon, 16 Dec 2013 11:34:25 +0000 (11:34 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Dec 2013 01:11:39 +0000 (17:11 -0800)
commita542a62ad237a10e21f32d1aaaaa2cc5b48b0863
treefce8e45d58e62385ad2000c7ea8a2d64be5f7ae5
parentf76522c0dbdcac0451c7cc3357d67d35441c4f20
imx-drm: ipu-v3: fix potential CRTC device registration race

Clean up the IPUv3 CRTC device registration; we don't need a separate
function just to call platform_device_register_data(), and we don't
need the return value converted at all.

Update the IPU client id under a mutex, so that parallel probing
doesn't race.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/imx-drm/ipu-v3/ipu-common.c