[PATCH] drm/tilcdc: Allocate register storage based on the actual number registers

2015-07-03 Thread Michael Bode
Reviewed-By: Michael Bode Jyri, good idea to allocate the space for registers dynamically. This eliminates the need of synchronizing driver and header file in an elegant way. Only thing I personally don't like, is potentially passing a NULL pointer to kfree. But I learned that this is valid

[PATCH] drm/tilcdc: Allocate register storage based on the actual number registers

2015-07-03 Thread Jyri Sarha
Allocate suspend/resume register storage based on the actual number registers the driver is aware of. The static allocation for register storage had falen behind badly. Reported-by: Michael Bode Signed-off-by: Jyri Sarha --- drivers/gpu/drm/tilcdc/tilcdc_drv.c | 20 +++- drivers