diff options
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 |