diff options
author | Rafael Antognolli <rafael.antognolli@intel.com> | 2016-01-21 18:10:18 -0500 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2016-02-12 08:22:18 -0500 |
commit | 70412cfa6ddebcc01e6b01b3fccb6068e48596ac (patch) | |
tree | a06ed97f2ac7bde7acee536e7bf0656eb0c2e129 /include/drm | |
parent | 382ab95d1af85381d8a5dff09b16a80c7e492534 (diff) |
drm/kms_helper: Add a common place to call init and exit functions.
The module_init and module_exit functions will start here, and call the
subsequent init's and exit's.
v10:
- Keep __init on drm_fb_helper init function.
- Move MODULE_* macros to the common file.
Signed-off-by: Rafael Antognolli <rafael.antognolli@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1453417821-2811-2-git-send-email-rafael.antognolli@intel.com
Diffstat (limited to 'include/drm')
-rw-r--r-- | include/drm/drm_fb_helper.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/drm/drm_fb_helper.h b/include/drm/drm_fb_helper.h index d8a40dff0d1d..062723bdcabe 100644 --- a/include/drm/drm_fb_helper.h +++ b/include/drm/drm_fb_helper.h | |||
@@ -219,6 +219,7 @@ struct drm_fb_helper { | |||
219 | }; | 219 | }; |
220 | 220 | ||
221 | #ifdef CONFIG_DRM_FBDEV_EMULATION | 221 | #ifdef CONFIG_DRM_FBDEV_EMULATION |
222 | int drm_fb_helper_modinit(void); | ||
222 | void drm_fb_helper_prepare(struct drm_device *dev, struct drm_fb_helper *helper, | 223 | void drm_fb_helper_prepare(struct drm_device *dev, struct drm_fb_helper *helper, |
223 | const struct drm_fb_helper_funcs *funcs); | 224 | const struct drm_fb_helper_funcs *funcs); |
224 | int drm_fb_helper_init(struct drm_device *dev, | 225 | int drm_fb_helper_init(struct drm_device *dev, |
@@ -283,6 +284,11 @@ int drm_fb_helper_add_one_connector(struct drm_fb_helper *fb_helper, struct drm_ | |||
283 | int drm_fb_helper_remove_one_connector(struct drm_fb_helper *fb_helper, | 284 | int drm_fb_helper_remove_one_connector(struct drm_fb_helper *fb_helper, |
284 | struct drm_connector *connector); | 285 | struct drm_connector *connector); |
285 | #else | 286 | #else |
287 | static inline int drm_fb_helper_modinit(void) | ||
288 | { | ||
289 | return 0; | ||
290 | } | ||
291 | |||
286 | static inline void drm_fb_helper_prepare(struct drm_device *dev, | 292 | static inline void drm_fb_helper_prepare(struct drm_device *dev, |
287 | struct drm_fb_helper *helper, | 293 | struct drm_fb_helper *helper, |
288 | const struct drm_fb_helper_funcs *funcs) | 294 | const struct drm_fb_helper_funcs *funcs) |