File tree Expand file tree Collapse file tree 2 files changed +4
-21
lines changed Expand file tree Collapse file tree 2 files changed +4
-21
lines changed Original file line number Diff line number Diff line change @@ -1634,6 +1634,9 @@ static int drm_fb_helper_single_fb_probe(struct drm_fb_helper *fb_helper)
1634
1634
struct fb_info * info ;
1635
1635
int ret ;
1636
1636
1637
+ if (drm_WARN_ON (dev , !dev -> driver -> fbdev_probe ))
1638
+ return - EINVAL ;
1639
+
1637
1640
ret = drm_fb_helper_find_sizes (fb_helper , & sizes );
1638
1641
if (ret ) {
1639
1642
/* First time: disable all crtc's.. */
@@ -1643,10 +1646,7 @@ static int drm_fb_helper_single_fb_probe(struct drm_fb_helper *fb_helper)
1643
1646
}
1644
1647
1645
1648
/* push down into drivers */
1646
- if (dev -> driver -> fbdev_probe )
1647
- ret = dev -> driver -> fbdev_probe (fb_helper , & sizes );
1648
- else if (fb_helper -> funcs )
1649
- ret = fb_helper -> funcs -> fb_probe (fb_helper , & sizes );
1649
+ ret = dev -> driver -> fbdev_probe (fb_helper , & sizes );
1650
1650
if (ret < 0 )
1651
1651
return ret ;
1652
1652
Original file line number Diff line number Diff line change @@ -69,23 +69,6 @@ struct drm_fb_helper_surface_size {
69
69
* Driver callbacks used by the fbdev emulation helper library.
70
70
*/
71
71
struct drm_fb_helper_funcs {
72
- /**
73
- * @fb_probe:
74
- *
75
- * Driver callback to allocate and initialize the fbdev info structure.
76
- * Furthermore it also needs to allocate the DRM framebuffer used to
77
- * back the fbdev.
78
- *
79
- * This callback is mandatory.
80
- *
81
- * RETURNS:
82
- *
83
- * The driver should return 0 on success and a negative error code on
84
- * failure.
85
- */
86
- int (* fb_probe )(struct drm_fb_helper * helper ,
87
- struct drm_fb_helper_surface_size * sizes );
88
-
89
72
/**
90
73
* @fb_dirty:
91
74
*
You can’t perform that action at this time.
0 commit comments