[PATCH 1/2] drm: hdlcd: Skip PM callbacks if unbound

2016-05-06 Thread liviu.du...@arm.com
On Fri, May 06, 2016 at 04:54:17PM +0200, Thierry Reding wrote: > On Thu, May 05, 2016 at 05:13:37PM +0100, Robin Murphy wrote: > > Until an encoder component is available to trigger the HDLCD's component > > master bind callback, the drm_device we keep in drvdata isn't allocated. > > Since it is q

[PATCH 1/2] drm: hdlcd: Skip PM callbacks if unbound

2016-05-06 Thread Thierry Reding
On Thu, May 05, 2016 at 05:13:37PM +0100, Robin Murphy wrote: > Until an encoder component is available to trigger the HDLCD's component > master bind callback, the drm_device we keep in drvdata isn't allocated. > Since it is quite possible to, say, hibernate the system without having > loaded the

[PATCH 1/2] drm: hdlcd: Skip PM callbacks if unbound

2016-05-05 Thread Robin Murphy
Until an encoder component is available to trigger the HDLCD's component master bind callback, the drm_device we keep in drvdata isn't allocated. Since it is quite possible to, say, hibernate the system without having loaded the encoder driver, the PM callbacks need to check for a valid drm_device