summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
diff options
context:
space:
mode:
authorSui Jingfeng <suijingfeng@loongson.cn>2023-10-02 14:12:05 +0300
committerLucas Stach <l.stach@pengutronix.de>2023-10-11 19:50:07 +0300
commita10a43eee8589221d79b9050556aed2c5842d8b8 (patch)
tree3dc4264dccaa2f1e4cb5f559289322764eab8c82 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
parent4cb91cc2cd0d31ffc690b23c88901f4f315b9d78 (diff)
downloadlinux-a10a43eee8589221d79b9050556aed2c5842d8b8.tar.xz
drm/etnaviv: Add helper functions to create and destroy platform device
The newly introduced functions are etnaviv_create_platform_device() and etnaviv_destroy_platform_device(). Those two function are pure function and can be shared for other use case. Currently, the benefit is that we no longer need to call of_node_put() for three different cases, we only need to call it once in the etnaviv_init() function. Signed-off-by: Sui Jingfeng <suijingfeng@loongson.cn> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions