diff options
author | Vincent Abriou <vincent.abriou@st.com> | 2016-09-15 15:11:07 (GMT) |
---|---|---|
committer | Vincent Abriou <vincent.abriou@st.com> | 2016-09-20 09:32:07 (GMT) |
commit | 38fdb8d95f8496f0db4fb1071998d27a35ba16a8 (patch) | |
tree | 963086f7b30dd280b13c4332475f436afbf6a388 /drivers/gpu/drm/sti/sti_compositor.c | |
parent | f766c6c810a6894a6049b5ee9406e098ac8cb611 (diff) | |
download | linux-38fdb8d95f8496f0db4fb1071998d27a35ba16a8.tar.xz |
drm/sti: fix compositor debugfs creation
Fix typo and issue while creating the vid and mixer debugfs entries.
Signed-off-by: Vincent Abriou <vincent.abriou@st.com>
Acked-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Diffstat (limited to 'drivers/gpu/drm/sti/sti_compositor.c')
-rw-r--r-- | drivers/gpu/drm/sti/sti_compositor.c | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/drivers/gpu/drm/sti/sti_compositor.c b/drivers/gpu/drm/sti/sti_compositor.c index ac160b0..a6f391b 100644 --- a/drivers/gpu/drm/sti/sti_compositor.c +++ b/drivers/gpu/drm/sti/sti_compositor.c @@ -55,22 +55,18 @@ static const struct sti_compositor_data stih416_compositor_data = { }, }; -int sti_compositor_debufs_init(struct sti_compositor *compo, - struct drm_minor *minor) +int sti_compositor_debugfs_init(struct sti_compositor *compo, + struct drm_minor *minor) { - int ret = 0, i; + unsigned int i; - for (i = 0; compo->vid[i]; i++) { - ret = vid_debugfs_init(compo->vid[i], minor); - if (ret) - return ret; - } + for (i = 0; i < STI_MAX_VID; i++) + if (compo->vid[i]) + vid_debugfs_init(compo->vid[i], minor); - for (i = 0; compo->mixer[i]; i++) { - ret = sti_mixer_debugfs_init(compo->mixer[i], minor); - if (ret) - return ret; - } + for (i = 0; i < STI_MAX_MIXER; i++) + if (compo->mixer[i]) + sti_mixer_debugfs_init(compo->mixer[i], minor); return 0; } |