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
7ac27354
Commit
7ac27354
authored
Jan 30, 2007
by
Len Brown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ACPI: delete unused acpi_device_get_debug_info()
Signed-off-by:
Len Brown
<
len.brown@intel.com
>
parent
37cabc81
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
45 deletions
+0
-45
drivers/acpi/scan.c
drivers/acpi/scan.c
+0
-45
No files found.
drivers/acpi/scan.c
View file @
7ac27354
...
...
@@ -888,49 +888,6 @@ static int acpi_device_set_context(struct acpi_device *device, int type)
return
result
;
}
static
void
acpi_device_get_debug_info
(
struct
acpi_device
*
device
,
acpi_handle
handle
,
int
type
)
{
#ifdef ACPI_DEBUG_OUTPUT
char
*
type_string
=
NULL
;
char
name
[
80
]
=
{
'?'
,
'\0'
};
struct
acpi_buffer
buffer
=
{
sizeof
(
name
),
name
};
switch
(
type
)
{
case
ACPI_BUS_TYPE_DEVICE
:
type_string
=
"Device"
;
acpi_get_name
(
handle
,
ACPI_FULL_PATHNAME
,
&
buffer
);
break
;
case
ACPI_BUS_TYPE_POWER
:
type_string
=
"Power Resource"
;
acpi_get_name
(
handle
,
ACPI_FULL_PATHNAME
,
&
buffer
);
break
;
case
ACPI_BUS_TYPE_PROCESSOR
:
type_string
=
"Processor"
;
acpi_get_name
(
handle
,
ACPI_FULL_PATHNAME
,
&
buffer
);
break
;
case
ACPI_BUS_TYPE_SYSTEM
:
type_string
=
"System"
;
acpi_get_name
(
handle
,
ACPI_FULL_PATHNAME
,
&
buffer
);
break
;
case
ACPI_BUS_TYPE_THERMAL
:
type_string
=
"Thermal Zone"
;
acpi_get_name
(
handle
,
ACPI_FULL_PATHNAME
,
&
buffer
);
break
;
case
ACPI_BUS_TYPE_POWER_BUTTON
:
type_string
=
"Power Button"
;
sprintf
(
name
,
"PWRB"
);
break
;
case
ACPI_BUS_TYPE_SLEEP_BUTTON
:
type_string
=
"Sleep Button"
;
sprintf
(
name
,
"SLPB"
);
break
;
}
printk
(
KERN_DEBUG
"Found %s %s [%p]
\n
"
,
type_string
,
name
,
handle
);
#endif
/* ACPI_DEBUG_OUTPUT */
}
static
int
acpi_bus_remove
(
struct
acpi_device
*
dev
,
int
rmdevice
)
{
int
result
=
0
;
...
...
@@ -1076,8 +1033,6 @@ acpi_add_single_object(struct acpi_device **child,
if
((
result
=
acpi_device_set_context
(
device
,
type
)))
goto
end
;
acpi_device_get_debug_info
(
device
,
handle
,
type
);
acpi_device_register
(
device
,
parent
);
/*
...
...
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