提交 76fd8eb8 编写于 作者: T Tom St Denis 提交者: Alex Deucher

drm/amd/display: Tidy up dce120_clock_source_create()

Also change sizeof to be automatic based on type declaration.
Signed-off-by: NTom St Denis <tom.stdenis@amd.com>
Reviewed-by: NHarry Wentland <Harry.Wentland@amd.com>
Reviewed-by: NTony Cheng <Tony.Cheng@amd.com>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 cedaf307
......@@ -398,7 +398,7 @@ struct clock_source *dce120_clock_source_create(
bool dp_clk_src)
{
struct dce110_clk_src *clk_src =
dm_alloc(sizeof(struct dce110_clk_src));
dm_alloc(sizeof(*clk_src));
if (!clk_src)
return NULL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册