]> git.baikalelectronics.ru Git - kernel.git/commit
drm/omap: dss: dsi: Move initialization code from bind to probe
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Sat, 3 Mar 2018 16:52:59 +0000 (18:52 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 3 Sep 2018 13:13:27 +0000 (16:13 +0300)
commit011a9f7e037cd9bfecbee8c7492dc714b2fa695f
treef8e7df47fc80f2eb5af6fe8c3fa13902c9bfd10c
parent108732e5e8c9cfe54f6f267514b72ad6449199d2
drm/omap: dss: dsi: Move initialization code from bind to probe

There's no reason to delay initialization of most of the driver (such as
mapping memory I/O or enabling runtime PM) to the component bind
handler. Perform as much of the initialization as possible at probe
time, initializing at bind time only the parts that depends on the DSS.
The cleanup code is moved from unbind to remove in a similar way.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/gpu/drm/omapdrm/dss/dsi.c