Lines Matching refs:tmp_res
37 struct resource *res, *tmp_res = NULL;
65 tmp_res = kzalloc(sizeof(*tmp_res), GFP_KERNEL);
66 if (!tmp_res) {
71 tmp_res->name = res->name;
72 tmp_res->start = res->start;
73 tmp_res->end = res->end;
74 tmp_res->flags = res->flags;
76 ret = request_resource(&iomem_resource, tmp_res);
78 pr_err("Cannot request resource %pR (%d)\n", tmp_res, ret);
79 kfree(tmp_res);
141 if (tmp_res) {
142 release_resource(tmp_res);
143 kfree(tmp_res);