Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci-2.6.23
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci-2.6.23
Commits
7c158ace
Commit
7c158ace
authored
Jul 11, 2007
by
Dave Airlie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm: cleanup list initialisation
Signed-off-by:
Dave Airlie
<
airlied@linux.ie
>
parent
6f710105
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
drivers/char/drm/drm_fops.c
drivers/char/drm/drm_fops.c
+0
-3
drivers/char/drm/drm_stub.c
drivers/char/drm/drm_stub.c
+4
-2
No files found.
drivers/char/drm/drm_fops.c
View file @
7c158ace
...
...
@@ -79,9 +79,6 @@ static int drm_setup(drm_device_t * dev)
drm_ht_create
(
&
dev
->
magiclist
,
DRM_MAGIC_HASH_ORDER
);
INIT_LIST_HEAD
(
&
dev
->
magicfree
);
INIT_LIST_HEAD
(
&
dev
->
ctxlist
);
INIT_LIST_HEAD
(
&
dev
->
vmalist
);
dev
->
sigdata
.
lock
=
NULL
;
init_waitqueue_head
(
&
dev
->
lock
.
lock_queue
);
dev
->
queue_count
=
0
;
...
...
drivers/char/drm/drm_stub.c
View file @
7c158ace
...
...
@@ -60,6 +60,10 @@ static int drm_fill_in_dev(drm_device_t * dev, struct pci_dev *pdev,
int
retcode
;
INIT_LIST_HEAD
(
&
dev
->
filelist
);
INIT_LIST_HEAD
(
&
dev
->
ctxlist
);
INIT_LIST_HEAD
(
&
dev
->
vmalist
);
INIT_LIST_HEAD
(
&
dev
->
maplist
);
spin_lock_init
(
&
dev
->
count_lock
);
spin_lock_init
(
&
dev
->
drw_lock
);
spin_lock_init
(
&
dev
->
tasklet_lock
);
...
...
@@ -81,8 +85,6 @@ static int drm_fill_in_dev(drm_device_t * dev, struct pci_dev *pdev,
return
-
ENOMEM
;
}
INIT_LIST_HEAD
(
&
dev
->
maplist
);
/* the DRM has 6 basic counters */
dev
->
counters
=
6
;
dev
->
types
[
0
]
=
_DRM_STAT_LOCK
;
...
...
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