Lines Matching defs:res
122 struct resource res[OMAP_MMC_NR_RES];
129 memset(res, 0, OMAP_MMC_NR_RES * sizeof(struct resource));
130 res[0].start = base;
131 res[0].end = base + size - 1;
132 res[0].flags = IORESOURCE_MEM;
133 res[1].start = res[1].end = irq;
134 res[1].flags = IORESOURCE_IRQ;
136 ret = platform_device_add_resources(pdev, res, ARRAY_SIZE(res));