Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 250669
b: refs/heads/master
c: 1f96279
h: refs/heads/master
i:
  250667: dea3324
v: v3
  • Loading branch information
Martin Peres authored and Ben Skeggs committed May 16, 2011
1 parent 46d33e0 commit 2779829
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: 1233bd8d31902c09f22691294082c7825f71d13b
refs/heads/master: 1f962797fb1343f02cbacb94d80c4560d47b67a9
6 changes: 3 additions & 3 deletions trunk/drivers/gpu/drm/nouveau/nouveau_pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ nouveau_hwmon_fini(struct drm_device *dev)
#endif
}

#ifdef CONFIG_ACPI
#if defined(CONFIG_ACPI) && defined(CONFIG_POWER_SUPPLY)
static int
nouveau_pm_acpi_event(struct notifier_block *nb, unsigned long val, void *data)
{
Expand Down Expand Up @@ -508,7 +508,7 @@ nouveau_pm_init(struct drm_device *dev)

nouveau_sysfs_init(dev);
nouveau_hwmon_init(dev);
#ifdef CONFIG_ACPI
#if defined(CONFIG_ACPI) && defined(CONFIG_POWER_SUPPLY)
pm->acpi_nb.notifier_call = nouveau_pm_acpi_event;
register_acpi_notifier(&pm->acpi_nb);
#endif
Expand All @@ -530,7 +530,7 @@ nouveau_pm_fini(struct drm_device *dev)
nouveau_perf_fini(dev);
nouveau_volt_fini(dev);

#ifdef CONFIG_ACPI
#if defined(CONFIG_ACPI) && defined(CONFIG_POWER_SUPPLY)
unregister_acpi_notifier(&pm->acpi_nb);
#endif
nouveau_hwmon_fini(dev);
Expand Down

0 comments on commit 2779829

Please sign in to comment.