drm/fb-helper: Fix sparse warnings
[cascardo/linux.git] / drivers / gpu / drm / drm_crtc_helper_internal.h
index 4e6b57a..28295e5 100644 (file)
 #include <drm/drm_dp_helper.h>
 
 /* drm_fb_helper.c */
+#ifdef CONFIG_DRM_FBDEV_EMULATION
 int drm_fb_helper_modinit(void);
+#else
+static inline int drm_fb_helper_modinit(void)
+{
+       return 0;
+}
+#endif
 
 /* drm_dp_aux_dev.c */
 #ifdef CONFIG_DRM_DP_AUX_CHARDEV