linux/drivers/gpu/drm/amd/display/dc/gpio/dce120
Su Sung Chung 91db931194 drm/amd/display: refactor gpio to allocate hw_container in constructor
[why]
if dynamic allocation fails during gpio_open, it will cause crash due to
page fault.

[how]
handle allocation when gpio object gets created and prevent from calling
gpio_open if allocation failed

Signed-off-by: Su Sung Chung <Su.Chung@amd.com>
Reviewed-by: Jun Lei <Jun.Lei@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2019-08-15 10:53:55 -05:00
..
hw_factory_dce120.c drm/amd/display: refactor gpio to allocate hw_container in constructor 2019-08-15 10:53:55 -05:00
hw_factory_dce120.h
hw_translate_dce120.c drm/amd/dc: include new ip and ip_offset headers 2018-02-19 14:18:14 -05:00
hw_translate_dce120.h