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)
commit4ae078d58ac7fadace7eb30bade8da649ecc4ded
treefce8e45d58e62385ad2000c7ea8a2d64be5f7ae5
parent8007875f0619f36d885ba357b587e673d6f20704
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