Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
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
Commits
5f9ae3c0
Commit
5f9ae3c0
authored
Aug 31, 2009
by
Len Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'acpica' into test
parents
0beab01e
1d64683f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
+12
-8
drivers/acpi/scan.c
drivers/acpi/scan.c
+12
-8
No files found.
drivers/acpi/scan.c
View file @
5f9ae3c0
...
...
@@ -309,6 +309,10 @@ static void acpi_device_release(struct device *dev)
struct
acpi_device
*
acpi_dev
=
to_acpi_device
(
dev
);
kfree
(
acpi_dev
->
pnp
.
cid_list
);
if
(
acpi_dev
->
flags
.
hardware_id
)
kfree
(
acpi_dev
->
pnp
.
hardware_id
);
if
(
acpi_dev
->
flags
.
unique_id
)
kfree
(
acpi_dev
->
pnp
.
unique_id
);
kfree
(
acpi_dev
);
}
...
...
@@ -1132,8 +1136,9 @@ static void acpi_device_set_id(struct acpi_device *device,
strcpy
(
device
->
pnp
.
hardware_id
,
hid
);
device
->
flags
.
hardware_id
=
1
;
}
}
else
device
->
pnp
.
hardware_id
=
NULL
;
}
if
(
!
device
->
flags
.
hardware_id
)
device
->
pnp
.
hardware_id
=
""
;
if
(
uid
)
{
device
->
pnp
.
unique_id
=
ACPI_ALLOCATE_ZEROED
(
strlen
(
uid
)
+
1
);
...
...
@@ -1141,8 +1146,9 @@ static void acpi_device_set_id(struct acpi_device *device,
strcpy
(
device
->
pnp
.
unique_id
,
uid
);
device
->
flags
.
unique_id
=
1
;
}
}
else
device
->
pnp
.
unique_id
=
NULL
;
}
if
(
!
device
->
flags
.
unique_id
)
device
->
pnp
.
unique_id
=
""
;
if
(
cid_list
||
cid_add
)
{
struct
acpica_device_id_list
*
list
;
...
...
@@ -1357,10 +1363,8 @@ acpi_add_single_object(struct acpi_device **child,
end:
if
(
!
result
)
*
child
=
device
;
else
{
kfree
(
device
->
pnp
.
cid_list
);
kfree
(
device
);
}
else
acpi_device_release
(
&
device
->
dev
);
return
result
;
}
...
...
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