|
@@ -693,9 +693,6 @@ static void destruct(struct dce110_resource_pool *pool)
|
|
|
if (pool->base.opps[i] != NULL)
|
|
|
dce110_opp_destroy(&pool->base.opps[i]);
|
|
|
|
|
|
- if (pool->base.engines[i] != NULL)
|
|
|
- dce110_engine_destroy(&pool->base.engines[i]);
|
|
|
-
|
|
|
if (pool->base.transforms[i] != NULL)
|
|
|
dce112_transform_destroy(&pool->base.transforms[i]);
|
|
|
|
|
@@ -711,6 +708,11 @@ static void destruct(struct dce110_resource_pool *pool)
|
|
|
kfree(DCE110TG_FROM_TG(pool->base.timing_generators[i]));
|
|
|
pool->base.timing_generators[i] = NULL;
|
|
|
}
|
|
|
+ }
|
|
|
+
|
|
|
+ for (i = 0; i < pool->base.res_cap->num_ddc; i++) {
|
|
|
+ if (pool->base.engines[i] != NULL)
|
|
|
+ dce110_engine_destroy(&pool->base.engines[i]);
|
|
|
if (pool->base.hw_i2cs[i] != NULL) {
|
|
|
kfree(pool->base.hw_i2cs[i]);
|
|
|
pool->base.hw_i2cs[i] = NULL;
|