|
@@ -162,7 +162,8 @@ static void rockchip_drm_output_poll_changed(struct drm_device *dev)
|
|
struct rockchip_drm_private *private = dev->dev_private;
|
|
struct rockchip_drm_private *private = dev->dev_private;
|
|
struct drm_fb_helper *fb_helper = &private->fbdev_helper;
|
|
struct drm_fb_helper *fb_helper = &private->fbdev_helper;
|
|
|
|
|
|
- drm_fb_helper_hotplug_event(fb_helper);
|
|
|
|
|
|
+ if (fb_helper)
|
|
|
|
+ drm_fb_helper_hotplug_event(fb_helper);
|
|
}
|
|
}
|
|
|
|
|
|
static const struct drm_mode_config_funcs rockchip_drm_mode_config_funcs = {
|
|
static const struct drm_mode_config_funcs rockchip_drm_mode_config_funcs = {
|