Searched refs:diag_res (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/drivers/mtd/devices/
H A Dms02-nv.c113 struct resource *diag_res; ms02nv_init_one() local
156 diag_res = kzalloc(sizeof(*diag_res), GFP_KERNEL); ms02nv_init_one()
157 if (!diag_res) ms02nv_init_one()
160 diag_res->name = ms02nv_res_diag_ram; ms02nv_init_one()
161 diag_res->start = addr; ms02nv_init_one()
162 diag_res->end = addr + MS02NV_RAM - 1; ms02nv_init_one()
163 diag_res->flags = IORESOURCE_BUSY; ms02nv_init_one()
164 request_resource(mod_res, diag_res); ms02nv_init_one()
166 mp->resource.diag_ram = diag_res; ms02nv_init_one()
237 release_resource(diag_res); ms02nv_init_one()
238 kfree(diag_res); ms02nv_init_one()

Completed in 47 milliseconds