mirror of
https://github.com/torvalds/linux.git
synced 2026-04-26 02:22:28 -04:00
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>
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user