region = devm_kzalloc(dev, sizeof(*region), GFP_KERNEL);
if (!region) {
of_node_put(child);
- dev_err(dev, "out of memory allocating region\n");
return -ENOMEM;
}
qmgr = devm_kzalloc(dev, sizeof(*qmgr), GFP_KERNEL);
if (!qmgr) {
of_node_put(child);
- dev_err(dev, "out of memory allocating qmgr\n");
return -ENOMEM;
}
pdsp = devm_kzalloc(dev, sizeof(*pdsp), GFP_KERNEL);
if (!pdsp) {
of_node_put(child);
- dev_err(dev, "out of memory allocating pdsp\n");
return -ENOMEM;
}
pdsp->name = knav_queue_find_name(child);