Lines Matching refs:child_res
608 struct resource *res, *child_res = NULL;
624 child_res = kcalloc(2, sizeof(*child_res), GFP_KERNEL);
625 if (!child_res) {
637 child_res[0].flags = res->flags;
638 child_res[0].start = res->start;
639 child_res[0].end = child_res[0].start +
647 child_res[1].flags = IORESOURCE_IRQ;
648 child_res[1].start = child_res[1].end = irq;
650 ret = platform_device_add_resources(qcom->dwc3, child_res, 2);
668 kfree(child_res);
673 kfree(child_res);