diff options
author | Dave Airlie <airlied@redhat.com> | 2010-03-01 05:50:01 -0500 |
---|---|---|
committer | Dave Airlie <airlied@ppcg5.localdomain> | 2010-03-01 06:21:58 -0500 |
commit | 8edb381d6705811b278527907a5ae2a9c4db8074 (patch) | |
tree | 3e9c0c6474eba65cfafc2652c49be002ae76a493 /drivers/gpu/drm/radeon/radeon_drv.h | |
parent | 55a5cb5d594c18b3147a2288b00ea359c1a38cf8 (diff) |
vga_switcheroo: fix build on platforms with no ACPI
radeon was always including the atpx code unnecessarily, also core
switcheroo was including acpi headers.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_drv.h')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_drv.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_drv.h b/drivers/gpu/drm/radeon/radeon_drv.h index 4fe16461bb1b..ec55f2b23c22 100644 --- a/drivers/gpu/drm/radeon/radeon_drv.h +++ b/drivers/gpu/drm/radeon/radeon_drv.h | |||
@@ -463,8 +463,14 @@ extern void r600_blit_swap(struct drm_device *dev, | |||
463 | int w, int h, int src_pitch, int dst_pitch, int cpp); | 463 | int w, int h, int src_pitch, int dst_pitch, int cpp); |
464 | 464 | ||
465 | /* atpx handler */ | 465 | /* atpx handler */ |
466 | #if defined(CONFIG_VGA_SWITCHEROO) | ||
466 | void radeon_register_atpx_handler(void); | 467 | void radeon_register_atpx_handler(void); |
467 | void radeon_unregister_atpx_handler(void); | 468 | void radeon_unregister_atpx_handler(void); |
469 | #else | ||
470 | static inline void radeon_register_atpx_handler(void) {} | ||
471 | static inline void radeon_unregister_atpx_handler(void) {} | ||
472 | #endif | ||
473 | |||
468 | /* Flags for stats.boxes | 474 | /* Flags for stats.boxes |
469 | */ | 475 | */ |
470 | #define RADEON_BOX_DMA_IDLE 0x1 | 476 | #define RADEON_BOX_DMA_IDLE 0x1 |