forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
kernel/drivers/gpu/drm/sti/sti_mixer.c
....@@ -5,7 +5,11 @@
55 * Fabien Dessenne <fabien.dessenne@st.com>
66 * for STMicroelectronics.
77 */
8
+
9
+#include <linux/moduleparam.h>
810 #include <linux/seq_file.h>
11
+
12
+#include <drm/drm_print.h>
913
1014 #include "sti_compositor.h"
1115 #include "sti_mixer.h"
....@@ -174,7 +178,7 @@
174178 { "mixer_aux", mixer_dbg_show, 0, NULL },
175179 };
176180
177
-int sti_mixer_debugfs_init(struct sti_mixer *mixer, struct drm_minor *minor)
181
+void sti_mixer_debugfs_init(struct sti_mixer *mixer, struct drm_minor *minor)
178182 {
179183 unsigned int i;
180184 struct drm_info_list *mixer_debugfs_files;
....@@ -190,15 +194,15 @@
190194 nb_files = ARRAY_SIZE(mixer1_debugfs_files);
191195 break;
192196 default:
193
- return -EINVAL;
197
+ return;
194198 }
195199
196200 for (i = 0; i < nb_files; i++)
197201 mixer_debugfs_files[i].data = mixer;
198202
199
- return drm_debugfs_create_files(mixer_debugfs_files,
200
- nb_files,
201
- minor->debugfs_root, minor);
203
+ drm_debugfs_create_files(mixer_debugfs_files,
204
+ nb_files,
205
+ minor->debugfs_root, minor);
202206 }
203207
204208 void sti_mixer_set_background_status(struct sti_mixer *mixer, bool enable)