forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
kernel/drivers/gpu/drm/sti/sti_vtg.c
....@@ -8,11 +8,13 @@
88 */
99
1010 #include <linux/module.h>
11
+#include <linux/io.h>
1112 #include <linux/notifier.h>
1213 #include <linux/of_platform.h>
1314 #include <linux/platform_device.h>
1415
15
-#include <drm/drmP.h>
16
+#include <drm/drm_modes.h>
17
+#include <drm/drm_print.h>
1618
1719 #include "sti_drv.h"
1820 #include "sti_vtg.h"
....@@ -119,7 +121,7 @@
119121 u32 vsync_off_bot;
120122 };
121123
122
-/**
124
+/*
123125 * STI VTG structure
124126 *
125127 * @regs: register mapping
....@@ -391,7 +393,7 @@
391393 DRM_ERROR("Get memory resource failed\n");
392394 return -ENOMEM;
393395 }
394
- vtg->regs = devm_ioremap_nocache(dev, res->start, resource_size(res));
396
+ vtg->regs = devm_ioremap(dev, res->start, resource_size(res));
395397 if (!vtg->regs) {
396398 DRM_ERROR("failed to remap I/O memory\n");
397399 return -ENOMEM;