drm/tilcdc: Allocate register storage based on the actual number registers
authorJyri Sarha <jsarha@ti.com>
Thu, 2 Jul 2015 13:26:12 +0000 (16:26 +0300)
committerJyri Sarha <jsarha@ti.com>
Thu, 25 Feb 2016 14:39:35 +0000 (16:39 +0200)
commit29ddd6e171abae990a881b9e221359f13c546369
tree52fe3c278ffa094913169fb53317c892eb56c83e
parent7974dff4957f953f0f6fd71c30e02a7c25aea7f0
drm/tilcdc: Allocate register storage based on the actual number registers

Allocate suspend/resume register storage based on the actual number
registers the driver is aware of. The static allocation for register
storage had fallen behind badly.

Reported-by: Michael Bode <michael@bumbleB.de>
Signed-off-by: Jyri Sarha <jsarha@ti.com>
Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/gpu/drm/tilcdc/tilcdc_drv.c
drivers/gpu/drm/tilcdc/tilcdc_drv.h