diff options
author | John Keeping <john@metanate.com> | 2016-01-21 18:19:34 +0000 |
---|---|---|
committer | Mark Yao <mark.yao@rock-chips.com> | 2016-01-22 08:45:31 +0800 |
commit | f0442df2156a2171e40f1643c60103e6333f4e7e (patch) | |
tree | 63cb2b0159d62015e95c1d257458f55e1b8f2078 /drivers/gpu/drm/rockchip/rockchip_drm_fbdev.h | |
parent | e3c4abdb3bc9b76bedd416ecc5c27633a2f8afed (diff) |
drm/rockchip: respect CONFIG_DRM_FBDEV_EMULATION
If DRM_FBDEV_EMULATION is not selected in the config then we can save a
bit of space by not including the framebuffer code.
Signed-off-by: John Keeping <john@metanate.com>
Diffstat (limited to 'drivers/gpu/drm/rockchip/rockchip_drm_fbdev.h')
-rw-r--r-- | drivers/gpu/drm/rockchip/rockchip_drm_fbdev.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_fbdev.h b/drivers/gpu/drm/rockchip/rockchip_drm_fbdev.h index 50432e9b5b37..73718c5f5bbf 100644 --- a/drivers/gpu/drm/rockchip/rockchip_drm_fbdev.h +++ b/drivers/gpu/drm/rockchip/rockchip_drm_fbdev.h @@ -15,7 +15,18 @@ #ifndef _ROCKCHIP_DRM_FBDEV_H #define _ROCKCHIP_DRM_FBDEV_H +#ifdef CONFIG_DRM_FBDEV_EMULATION int rockchip_drm_fbdev_init(struct drm_device *dev); void rockchip_drm_fbdev_fini(struct drm_device *dev); +#else +static inline int rockchip_drm_fbdev_init(struct drm_device *dev) +{ + return 0; +} + +static inline void rockchip_drm_fbdev_fini(struct drm_device *dev) +{ +} +#endif #endif /* _ROCKCHIP_DRM_FBDEV_H */ |