destruct(sw_engine);
- dm_free(sw_engine);
+ kfree(sw_engine);
*engine = NULL;
}
return NULL;
}
- engine_dce110 = dm_alloc(sizeof(struct i2c_sw_engine_dce110));
+ engine_dce110 = kzalloc(sizeof(struct i2c_sw_engine_dce110),
+ GFP_KERNEL);
if (!engine_dce110) {
ASSERT_CRITICAL(false);
ASSERT_CRITICAL(false);
- dm_free(engine_dce110);
+ kfree(engine_dce110);
return NULL;
}