Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
b1255b88
Commit
b1255b88
authored
Jul 10, 2013
by
Patrik Jakobsson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/gma500/psb: Convert to generic crtc->destroy
Signed-off-by:
Patrik Jakobsson
<
patrik.r.jakobsson@gmail.com
>
parent
d903b610
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
22 deletions
+1
-22
drivers/gpu/drm/gma500/psb_intel_display.c
drivers/gpu/drm/gma500/psb_intel_display.c
+1
-22
No files found.
drivers/gpu/drm/gma500/psb_intel_display.c
View file @
b1255b88
...
...
@@ -726,27 +726,6 @@ struct drm_display_mode *psb_intel_crtc_mode_get(struct drm_device *dev,
return
mode
;
}
static
void
psb_intel_crtc_destroy
(
struct
drm_crtc
*
crtc
)
{
struct
psb_intel_crtc
*
psb_intel_crtc
=
to_psb_intel_crtc
(
crtc
);
struct
gtt_range
*
gt
;
/* Unpin the old GEM object */
if
(
psb_intel_crtc
->
cursor_obj
)
{
gt
=
container_of
(
psb_intel_crtc
->
cursor_obj
,
struct
gtt_range
,
gem
);
psb_gtt_unpin
(
gt
);
drm_gem_object_unreference
(
psb_intel_crtc
->
cursor_obj
);
psb_intel_crtc
->
cursor_obj
=
NULL
;
}
if
(
psb_intel_crtc
->
cursor_gt
!=
NULL
)
psb_gtt_free_range
(
crtc
->
dev
,
psb_intel_crtc
->
cursor_gt
);
kfree
(
psb_intel_crtc
->
crtc_state
);
drm_crtc_cleanup
(
crtc
);
kfree
(
psb_intel_crtc
);
}
const
struct
drm_crtc_helper_funcs
psb_intel_helper_funcs
=
{
.
dpms
=
gma_crtc_dpms
,
.
mode_fixup
=
gma_crtc_mode_fixup
,
...
...
@@ -764,7 +743,7 @@ const struct drm_crtc_funcs psb_intel_crtc_funcs = {
.
cursor_move
=
psb_intel_crtc_cursor_move
,
.
gamma_set
=
gma_crtc_gamma_set
,
.
set_config
=
psb_crtc_set_config
,
.
destroy
=
psb_intel
_crtc_destroy
,
.
destroy
=
gma
_crtc_destroy
,
};
const
struct
gma_clock_funcs
psb_clock_funcs
=
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment