Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 303923
b: refs/heads/master
c: 66886d6
h: refs/heads/master
i:
  303921: f2d68ec
  303919: 82e5a34
v: v3
  • Loading branch information
Matthew Garrett authored and Greg Kroah-Hartman committed May 12, 2012
1 parent 339d15b commit d3c798f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2721ea2c0f26bb3a2668541412740497b64be2a2
refs/heads/master: 66886d6f8c9bcdee3d7fce5796dcffd6b4bc0b48
2 changes: 2 additions & 0 deletions trunk/drivers/acpi/glue.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ static struct acpi_bus_type *acpi_get_bus_type(struct bus_type *type)
up_read(&bus_type_sem);
return ret;
}
EXPORT_SYMBOL_GPL(register_acpi_bus_type);

static int acpi_find_bridge_device(struct device *dev, acpi_handle * handle)
{
Expand All @@ -85,6 +86,7 @@ static int acpi_find_bridge_device(struct device *dev, acpi_handle * handle)
up_read(&bus_type_sem);
return ret;
}
EXPORT_SYMBOL_GPL(unregister_acpi_bus_type);

/* Get device's handler per its address under its parent */
struct acpi_find_child {
Expand Down
5 changes: 5 additions & 0 deletions trunk/include/acpi/acpi_bus.h
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,11 @@ static inline int acpi_pm_device_sleep_wake(struct device *dev, bool enable)
}
#endif

#else /* CONFIG_ACPI */

static int register_acpi_bus_type(struct acpi_bus_type *bus) { return 0; }
static int unregister_acpi_bus_type(struct acpi_bus_type *bus) { return 0; }

#endif /* CONFIG_ACPI */

#endif /*__ACPI_BUS_H__*/

0 comments on commit d3c798f

Please sign in to comment.