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
762a222a
Commit
762a222a
authored
Apr 27, 2004
by
Len Brown
Committed by
Len Brown
Apr 27, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ACPI] button build fix
parent
8735c65b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
13 deletions
+12
-13
drivers/acpi/button.c
drivers/acpi/button.c
+6
-6
drivers/acpi/scan.c
drivers/acpi/scan.c
+6
-7
No files found.
drivers/acpi/button.c
View file @
762a222a
...
...
@@ -108,8 +108,8 @@ static struct file_operations acpi_button_state_fops = {
-------------------------------------------------------------------------- */
static
struct
proc_dir_entry
*
acpi_button_dir
;
struct
acpi_device
*
fixed_pwr_button
;
struct
acpi_device
*
fixed_sleep_button
;
extern
struct
acpi_device
*
acpi_
fixed_pwr_button
;
extern
struct
acpi_device
*
acpi_
fixed_sleep_button
;
static
int
acpi_button_info_seq_show
(
struct
seq_file
*
seq
,
void
*
offset
)
...
...
@@ -530,11 +530,11 @@ acpi_button_exit (void)
{
ACPI_FUNCTION_TRACE
(
"acpi_button_exit"
);
if
(
fixed_pwr_button
)
acpi_button_remove
(
fixed_pwr_button
,
ACPI_BUS_TYPE_POWER_BUTTON
);
if
(
acpi_
fixed_pwr_button
)
acpi_button_remove
(
acpi_
fixed_pwr_button
,
ACPI_BUS_TYPE_POWER_BUTTON
);
if
(
fixed_sleep_button
)
acpi_button_remove
(
fixed_sleep_button
,
ACPI_BUS_TYPE_SLEEP_BUTTON
);
if
(
acpi_
fixed_sleep_button
)
acpi_button_remove
(
acpi_
fixed_sleep_button
,
ACPI_BUS_TYPE_SLEEP_BUTTON
);
acpi_bus_unregister_driver
(
&
acpi_button_driver
);
...
...
drivers/acpi/scan.c
View file @
762a222a
...
...
@@ -15,8 +15,8 @@ ACPI_MODULE_NAME ("scan")
#define STRUCT_TO_INT(s) (*((int*)&s))
extern
struct
acpi_device
*
acpi_root
;
extern
struct
acpi_device
*
fixed_pwr_button
;
extern
struct
acpi_device
*
fixed_sleep_button
;
struct
acpi_device
*
acpi_
fixed_pwr_button
;
struct
acpi_device
*
acpi_
fixed_sleep_button
;
#define ACPI_BUS_CLASS "system_bus"
...
...
@@ -902,12 +902,11 @@ acpi_bus_scan_fixed (
struct
acpi_device
*
root
)
{
int
result
=
0
;
struct
acpi_device
*
device
=
NULL
;
ACPI_FUNCTION_TRACE
(
"acpi_bus_scan_fixed"
);
fixed_pwr_button
=
NULL
;
fixed_sleep_button
=
NULL
;
acpi_
fixed_pwr_button
=
NULL
;
acpi_
fixed_sleep_button
=
NULL
;
if
(
!
root
)
...
...
@@ -917,11 +916,11 @@ acpi_bus_scan_fixed (
* Enumerate all fixed-feature devices.
*/
if
(
acpi_fadt
.
pwr_button
==
0
)
result
=
acpi_bus_add
(
&
fixed_pwr_button
,
acpi_root
,
result
=
acpi_bus_add
(
&
acpi_
fixed_pwr_button
,
acpi_root
,
NULL
,
ACPI_BUS_TYPE_POWER_BUTTON
);
if
(
acpi_fadt
.
sleep_button
==
0
)
result
=
acpi_bus_add
(
&
fixed_sleep_button
,
acpi_root
,
result
=
acpi_bus_add
(
&
acpi_
fixed_sleep_button
,
acpi_root
,
NULL
,
ACPI_BUS_TYPE_SLEEP_BUTTON
);
return_VALUE
(
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