diff options
author | Rob Clark <robdclark@chromium.org> | 2020-10-19 14:10:52 -0700 |
---|---|---|
committer | Rob Clark <robdclark@chromium.org> | 2020-11-01 10:13:32 -0800 |
commit | ffe71111f4ab5aa670502f190d0b7fe10edd1784 (patch) | |
tree | 0dac0d56ccdf3ea7c05886fa3d6538676535d929 /drivers/gpu/drm/msm/disp/mdp_kms.h | |
parent | 7e688294c61bdcb7468a71f7bb5a9c2d42fbd2a8 (diff) | |
download | linux-ffe71111f4ab5aa670502f190d0b7fe10edd1784.tar.bz2 |
drm/msm/kms: Update msm_kms_init/destroy
Add msm_kms_destroy() and add err return from msm_kms_init(). Prep work
for next patch.
Signed-off-by: Rob Clark <robdclark@chromium.org>
Diffstat (limited to 'drivers/gpu/drm/msm/disp/mdp_kms.h')
-rw-r--r-- | drivers/gpu/drm/msm/disp/mdp_kms.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/gpu/drm/msm/disp/mdp_kms.h b/drivers/gpu/drm/msm/disp/mdp_kms.h index 1535c5618491..b0286d5d5130 100644 --- a/drivers/gpu/drm/msm/disp/mdp_kms.h +++ b/drivers/gpu/drm/msm/disp/mdp_kms.h @@ -36,12 +36,17 @@ struct mdp_kms { }; #define to_mdp_kms(x) container_of(x, struct mdp_kms, base) -static inline void mdp_kms_init(struct mdp_kms *mdp_kms, +static inline int mdp_kms_init(struct mdp_kms *mdp_kms, const struct mdp_kms_funcs *funcs) { mdp_kms->funcs = funcs; INIT_LIST_HEAD(&mdp_kms->irq_list); - msm_kms_init(&mdp_kms->base, &funcs->base); + return msm_kms_init(&mdp_kms->base, &funcs->base); +} + +static inline void mdp_kms_destroy(struct mdp_kms *mdp_kms) +{ + msm_kms_destroy(&mdp_kms->base); } /* |