drm/armada: Convert the probe function to the generic drm_of_component_probe()
authorLiviu Dudau <Liviu.Dudau@arm.com>
Tue, 20 Oct 2015 09:23:15 +0000 (10:23 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 20 Oct 2015 10:01:34 +0000 (12:01 +0200)
commit7fc7e86d096f13cf88391b09a3a387172450ad79
tree43d5c0e186df0e54cc897b4ea88335650cfdd883
parent52f5eb60940de889ce98a876f6933b574ead3225
drm/armada: Convert the probe function to the generic drm_of_component_probe()

The armada DRM driver keeps some old platform data compatibility in the
probe function that makes moving to the generic drm_of_component_probe()
a bit more complicated that it should. Refactor the probe function to do
the platform_data processing after the generic probe (and only if that
fails). This way future cleanup can further remove support for it.

Signed-off-by: Liviu Dudau <Liviu.Dudau@arm.com>
Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/1445332995-11212-5-git-send-email-Liviu.Dudau@arm.com
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/armada/armada_drv.c