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
Kirill Smelkov
linux
Commits
33b57150
Commit
33b57150
authored
Dec 15, 2008
by
Len Brown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ACPI: delete acpi_device.g_list
unused Signed-off-by:
Len Brown
<
len.brown@intel.com
>
parent
9090589d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
14 deletions
+4
-14
drivers/acpi/scan.c
drivers/acpi/scan.c
+4
-13
include/acpi/acpi_bus.h
include/acpi/acpi_bus.h
+0
-1
No files found.
drivers/acpi/scan.c
View file @
33b57150
...
...
@@ -491,7 +491,6 @@ static int acpi_device_register(struct acpi_device *device,
*/
INIT_LIST_HEAD
(
&
device
->
children
);
INIT_LIST_HEAD
(
&
device
->
node
);
INIT_LIST_HEAD
(
&
device
->
g_list
);
INIT_LIST_HEAD
(
&
device
->
wakeup_list
);
new_bus_id
=
kzalloc
(
sizeof
(
struct
acpi_device_bus_id
),
GFP_KERNEL
);
...
...
@@ -521,11 +520,9 @@ static int acpi_device_register(struct acpi_device *device,
}
dev_set_name
(
&
device
->
dev
,
"%s:%02x"
,
acpi_device_bus_id
->
bus_id
,
acpi_device_bus_id
->
instance_no
);
if
(
device
->
parent
)
{
if
(
device
->
parent
)
list_add_tail
(
&
device
->
node
,
&
device
->
parent
->
children
);
list_add_tail
(
&
device
->
g_list
,
&
device
->
parent
->
g_list
);
}
else
list_add_tail
(
&
device
->
g_list
,
&
acpi_device_list
);
if
(
device
->
wakeup
.
flags
.
valid
)
list_add_tail
(
&
device
->
wakeup_list
,
&
acpi_wakeup_device_list
);
mutex_unlock
(
&
acpi_device_lock
);
...
...
@@ -550,11 +547,8 @@ static int acpi_device_register(struct acpi_device *device,
return
0
;
end:
mutex_lock
(
&
acpi_device_lock
);
if
(
device
->
parent
)
{
if
(
device
->
parent
)
list_del
(
&
device
->
node
);
list_del
(
&
device
->
g_list
);
}
else
list_del
(
&
device
->
g_list
);
list_del
(
&
device
->
wakeup_list
);
mutex_unlock
(
&
acpi_device_lock
);
return
result
;
...
...
@@ -563,11 +557,8 @@ static int acpi_device_register(struct acpi_device *device,
static
void
acpi_device_unregister
(
struct
acpi_device
*
device
,
int
type
)
{
mutex_lock
(
&
acpi_device_lock
);
if
(
device
->
parent
)
{
if
(
device
->
parent
)
list_del
(
&
device
->
node
);
list_del
(
&
device
->
g_list
);
}
else
list_del
(
&
device
->
g_list
);
list_del
(
&
device
->
wakeup_list
);
mutex_unlock
(
&
acpi_device_lock
);
...
...
include/acpi/acpi_bus.h
View file @
33b57150
...
...
@@ -270,7 +270,6 @@ struct acpi_device {
struct
list_head
children
;
struct
list_head
node
;
struct
list_head
wakeup_list
;
struct
list_head
g_list
;
struct
acpi_device_status
status
;
struct
acpi_device_flags
flags
;
struct
acpi_device_pnp
pnp
;
...
...
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