9
0
Fork 0

resource: statically initialize iomem resource

This gets us rid of an initcall and also has the advantage that
request_iomem_region can be called at any time now.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2012-10-06 19:49:35 +02:00
parent 54763e2c17
commit 0b494649fa
1 changed files with 2 additions and 8 deletions

View File

@ -101,6 +101,8 @@ int release_region(struct resource *res)
struct resource iomem_resource = {
.start = 0,
.end = 0xffffffff,
.name = "iomem",
.children = LIST_HEAD_INIT(iomem_resource.children),
};
/*
@ -111,11 +113,3 @@ struct resource *request_iomem_region(const char *name,
{
return request_region(&iomem_resource, name, start, end);
}
static int iomem_init(void)
{
init_resource(&iomem_resource, "iomem");
return 0;
}
postcore_initcall(iomem_init);