forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/gpu/drm/radeon/atom.c
....@@ -25,7 +25,11 @@
2525 #include <linux/module.h>
2626 #include <linux/sched.h>
2727 #include <linux/slab.h>
28
+
2829 #include <asm/unaligned.h>
30
+
31
+#include <drm/drm_device.h>
32
+#include <drm/drm_util.h>
2933
3034 #define ATOM_DEBUG
3135
....@@ -1207,8 +1211,7 @@
12071211 SDEBUG("<<\n");
12081212
12091213 free:
1210
- if (ws)
1211
- kfree(ectx.ws);
1214
+ kfree(ectx.ws);
12121215 return ret;
12131216 }
12141217