video: driver: cleanup driver remove sequence

Remove deinit sequence calls and register devm
managed callbacks, so that kernel can invoke
then, when dev scope ends and cleansup all
associated resources.

Change-Id: I729fd21fe32d9f39240d0b743f910409d93a00c5
Signed-off-by: Govindaraj Rajagopal <quic_grajagop@quicinc.com>
This commit is contained in:
Govindaraj Rajagopal
2023-05-30 20:43:52 +05:30
förälder b6fba340c3
incheckning 29d10ac07b
18 ändrade filer med 95 tillägg och 256 borttagningar

Visa fil

@@ -11,17 +11,11 @@
#if defined(CONFIG_MSM_VIDC_PINEAPPLE)
int msm_vidc_init_platform_pineapple(struct msm_vidc_core *core);
int msm_vidc_deinit_platform_pineapple(struct msm_vidc_core *core);
#else
int msm_vidc_init_platform_pineapple(struct msm_vidc_core *core)
{
return -EINVAL;
}
int msm_vidc_deinit_platform_pineapple(struct msm_vidc_core *core)
{
return -EINVAL;
}
#endif
#endif // _MSM_VIDC_PINEAPPLE_H_