Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 48723
b: refs/heads/master
c: aafbcd1
h: refs/heads/master
i:
  48721: 1739a33
  48719: 4c2580d
v: v3
  • Loading branch information
Alexey Starikovskiy authored and Len Brown committed Feb 10, 2007
1 parent e50eb89 commit 93e9fe7
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ed41dab90eb40ac4911e60406bc653661f0e4ce1
refs/heads/master: aafbcd165a2a02e6dff173f66772b3148229ace8
13 changes: 8 additions & 5 deletions trunk/drivers/acpi/bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ int acpi_bus_get_power(acpi_handle handle, int *state)
*state = ACPI_STATE_D0;
} else {
/*
* Get the device's power state either directly (via _PSC) or
* Get the device's power state either directly (via _PSC) or
* indirectly (via power resources).
*/
if (device->power.flags.explicit_get) {
Expand Down Expand Up @@ -462,7 +462,7 @@ static void acpi_bus_notify(acpi_handle handle, u32 type, void *data)
"Received BUS CHECK notification for device [%s]\n",
device->pnp.bus_id));
result = acpi_bus_check_scope(device);
/*
/*
* TBD: We'll need to outsource certain events to non-ACPI
* drivers via the device manager (device.c).
*/
Expand All @@ -473,7 +473,7 @@ static void acpi_bus_notify(acpi_handle handle, u32 type, void *data)
"Received DEVICE CHECK notification for device [%s]\n",
device->pnp.bus_id));
result = acpi_bus_check_device(device, NULL);
/*
/*
* TBD: We'll need to outsource certain events to non-ACPI
* drivers via the device manager (device.c).
*/
Expand Down Expand Up @@ -543,7 +543,7 @@ static int __init acpi_bus_init_irq(void)
char *message = NULL;


/*
/*
* Let the system know what interrupt model we are using by
* evaluating the \_PIC object, if exists.
*/
Expand Down Expand Up @@ -684,7 +684,7 @@ static int __init acpi_bus_init(void)
* the EC device is found in the namespace (i.e. before acpi_initialize_objects()
* is called).
*
* This is accomplished by looking for the ECDT table, and getting
* This is accomplished by looking for the ECDT table, and getting
* the EC parameters out of that.
*/
status = acpi_ec_ecdt_probe();
Expand All @@ -699,6 +699,9 @@ static int __init acpi_bus_init(void)

printk(KERN_INFO PREFIX "Interpreter enabled\n");

/* Initialize sleep structures */
acpi_sleep_init();

/*
* Get the system interrupt model and evaluate \_PIC.
*/
Expand Down
3 changes: 1 addition & 2 deletions trunk/drivers/acpi/sleep/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ static struct dmi_system_id __initdata acpisleep_dmi_table[] = {
{},
};

static int __init acpi_sleep_init(void)
int __init acpi_sleep_init(void)
{
int i = 0;

Expand Down Expand Up @@ -229,4 +229,3 @@ static int __init acpi_sleep_init(void)
return 0;
}

late_initcall(acpi_sleep_init);
10 changes: 10 additions & 0 deletions trunk/include/acpi/acpi_drivers.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,4 +128,14 @@ extern void unregister_hotplug_dock_device(acpi_handle handle);
#define register_hotplug_dock_device(h1, h2, c) (-ENODEV)
#define unregister_hotplug_dock_device(h) do { } while(0)
#endif

/*--------------------------------------------------------------------------
Suspend/Resume
-------------------------------------------------------------------------- */
#ifdef CONFIG_ACPI_SLEEP
extern int acpi_sleep_init(void);
#else
#define acpi_sleep_init() do {} while (0)
#endif

#endif /*__ACPI_DRIVERS_H__*/

0 comments on commit 93e9fe7

Please sign in to comment.