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:
@@ -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_
|
||||
|
Referens i nytt ärende
Block a user