]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/blobdiff - drivers/gpu/drm/amd/display/dc/dce112/dce112_compressor.c
drm/amd/display: Use kernel alloc/free
[mirror_ubuntu-eoan-kernel.git] / drivers / gpu / drm / amd / display / dc / dce112 / dce112_compressor.c
index 75af2125344b5ef07c410b7af2669620fd8baabc..e75895baa13233b129caf163c5e104442b20188b 100644 (file)
@@ -839,7 +839,7 @@ bool dce112_compressor_construct(struct dce112_compressor *compressor,
 struct compressor *dce112_compressor_create(struct dc_context *ctx)
 {
        struct dce112_compressor *cp110 =
-               dm_alloc(sizeof(struct dce112_compressor));
+               kzalloc(sizeof(struct dce112_compressor), GFP_KERNEL);
 
        if (!cp110)
                return NULL;
@@ -848,12 +848,12 @@ struct compressor *dce112_compressor_create(struct dc_context *ctx)
                return &cp110->base;
 
        BREAK_TO_DEBUGGER();
-       dm_free(cp110);
+       kfree(cp110);
        return NULL;
 }
 
 void dce112_compressor_destroy(struct compressor **compressor)
 {
-       dm_free(TO_DCE112_COMPRESSOR(*compressor));
+       kfree(TO_DCE112_COMPRESSOR(*compressor));
        *compressor = NULL;
 }