diff options
author | Ben Hutchings <ben@decadent.org.uk> | 2013-02-19 21:57:32 -0500 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2013-02-20 01:05:16 -0500 |
commit | a91ed42de25e7e81159c0dd59faf8cac9dfa1d32 (patch) | |
tree | cdc591f8dd70b3c83497fcfd06fa836cfaf944b3 | |
parent | 5effecd4f8ff0200c4224060275a6c4ecbeed3eb (diff) |
nouveau: ACPI support depends on X86 and X86_PLATFORM_DEVICES
If I build nouveau on ia64, Kconfig warns:
warning: (DRM_NOUVEAU) selects ACPI_WMI which has unmet direct dependencies (X86 && X86_PLATFORM_DEVICES && ACPI)
warning: (DRM_NOUVEAU) selects MXM_WMI which has unmet direct dependencies (X86 && X86_PLATFORM_DEVICES && ACPI_WMI)
Make all the ACPI support depend on X86 and select
X86_PLATFORM_DEVICES.
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
-rw-r--r-- | drivers/gpu/drm/nouveau/Kconfig | 5 | ||||
-rw-r--r-- | drivers/gpu/drm/nouveau/Makefile | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/nouveau/core/subdev/bios/base.c | 2 | ||||
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_acpi.h | 2 |
4 files changed, 7 insertions, 4 deletions
diff --git a/drivers/gpu/drm/nouveau/Kconfig b/drivers/gpu/drm/nouveau/Kconfig index 8a55beeb8bdc..120e7d15f498 100644 --- a/drivers/gpu/drm/nouveau/Kconfig +++ b/drivers/gpu/drm/nouveau/Kconfig | |||
@@ -11,8 +11,9 @@ config DRM_NOUVEAU | |||
11 | select FRAMEBUFFER_CONSOLE if !EXPERT | 11 | select FRAMEBUFFER_CONSOLE if !EXPERT |
12 | select FB_BACKLIGHT if DRM_NOUVEAU_BACKLIGHT | 12 | select FB_BACKLIGHT if DRM_NOUVEAU_BACKLIGHT |
13 | select ACPI_VIDEO if ACPI && X86 && BACKLIGHT_CLASS_DEVICE && VIDEO_OUTPUT_CONTROL && INPUT | 13 | select ACPI_VIDEO if ACPI && X86 && BACKLIGHT_CLASS_DEVICE && VIDEO_OUTPUT_CONTROL && INPUT |
14 | select ACPI_WMI if ACPI | 14 | select X86_PLATFORM_DEVICES if ACPI && X86 |
15 | select MXM_WMI if ACPI | 15 | select ACPI_WMI if ACPI && X86 |
16 | select MXM_WMI if ACPI && X86 | ||
16 | select POWER_SUPPLY | 17 | select POWER_SUPPLY |
17 | help | 18 | help |
18 | Choose this option for open-source nVidia support. | 19 | Choose this option for open-source nVidia support. |
diff --git a/drivers/gpu/drm/nouveau/Makefile b/drivers/gpu/drm/nouveau/Makefile index c8929880517b..51d09729fc56 100644 --- a/drivers/gpu/drm/nouveau/Makefile +++ b/drivers/gpu/drm/nouveau/Makefile | |||
@@ -238,7 +238,9 @@ nouveau-y += nouveau_mem.o | |||
238 | 238 | ||
239 | # other random bits | 239 | # other random bits |
240 | nouveau-$(CONFIG_COMPAT) += nouveau_ioc32.o | 240 | nouveau-$(CONFIG_COMPAT) += nouveau_ioc32.o |
241 | ifdef CONFIG_X86 | ||
241 | nouveau-$(CONFIG_ACPI) += nouveau_acpi.o | 242 | nouveau-$(CONFIG_ACPI) += nouveau_acpi.o |
243 | endif | ||
242 | nouveau-$(CONFIG_DRM_NOUVEAU_BACKLIGHT) += nouveau_backlight.o | 244 | nouveau-$(CONFIG_DRM_NOUVEAU_BACKLIGHT) += nouveau_backlight.o |
243 | 245 | ||
244 | obj-$(CONFIG_DRM_NOUVEAU)+= nouveau.o | 246 | obj-$(CONFIG_DRM_NOUVEAU)+= nouveau.o |
diff --git a/drivers/gpu/drm/nouveau/core/subdev/bios/base.c b/drivers/gpu/drm/nouveau/core/subdev/bios/base.c index f621f69fa1a2..e816f06637a7 100644 --- a/drivers/gpu/drm/nouveau/core/subdev/bios/base.c +++ b/drivers/gpu/drm/nouveau/core/subdev/bios/base.c | |||
@@ -172,7 +172,7 @@ out: | |||
172 | nv_wr32(bios, pcireg, access); | 172 | nv_wr32(bios, pcireg, access); |
173 | } | 173 | } |
174 | 174 | ||
175 | #if defined(CONFIG_ACPI) | 175 | #if defined(CONFIG_ACPI) && defined(CONFIG_X86) |
176 | int nouveau_acpi_get_bios_chunk(uint8_t *bios, int offset, int len); | 176 | int nouveau_acpi_get_bios_chunk(uint8_t *bios, int offset, int len); |
177 | bool nouveau_acpi_rom_supported(struct pci_dev *pdev); | 177 | bool nouveau_acpi_rom_supported(struct pci_dev *pdev); |
178 | #else | 178 | #else |
diff --git a/drivers/gpu/drm/nouveau/nouveau_acpi.h b/drivers/gpu/drm/nouveau/nouveau_acpi.h index d0da230d7706..74acf0f87785 100644 --- a/drivers/gpu/drm/nouveau/nouveau_acpi.h +++ b/drivers/gpu/drm/nouveau/nouveau_acpi.h | |||
@@ -3,7 +3,7 @@ | |||
3 | 3 | ||
4 | #define ROM_BIOS_PAGE 4096 | 4 | #define ROM_BIOS_PAGE 4096 |
5 | 5 | ||
6 | #if defined(CONFIG_ACPI) | 6 | #if defined(CONFIG_ACPI) && defined(CONFIG_X86) |
7 | bool nouveau_is_optimus(void); | 7 | bool nouveau_is_optimus(void); |
8 | bool nouveau_is_v1_dsm(void); | 8 | bool nouveau_is_v1_dsm(void); |
9 | void nouveau_register_dsm_handler(void); | 9 | void nouveau_register_dsm_handler(void); |