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>
This commit is contained in:
@@ -66,7 +66,7 @@ struct tilcdc_drm_private {
|
||||
uint32_t max_width;
|
||||
|
||||
/* register contents saved across suspend/resume: */
|
||||
u32 saved_register[12];
|
||||
u32 *saved_register;
|
||||
bool ctx_valid;
|
||||
|
||||
#ifdef CONFIG_CPU_FREQ
|
||||
|
Reference in New Issue
Block a user