summaryrefslogtreecommitdiff
path: root/libdde_linux26/contrib/block/blk-ioc.c
diff options
context:
space:
mode:
authorZheng Da <zhengda1936@gmail.com>2010-01-16 01:21:07 +0100
committerZheng Da <zhengda1936@gmail.com>2010-01-16 01:21:07 +0100
commit2680eecc499e43679be098e5834d4f3a62f59a0c (patch)
tree32771b7ae2f930a6f107f9c86d7de03f9622f03f /libdde_linux26/contrib/block/blk-ioc.c
parent51299b970600d28df634708557f80df3526014ae (diff)
prepare to use initcall to do initialization.
Diffstat (limited to 'libdde_linux26/contrib/block/blk-ioc.c')
-rw-r--r--libdde_linux26/contrib/block/blk-ioc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libdde_linux26/contrib/block/blk-ioc.c b/libdde_linux26/contrib/block/blk-ioc.c
index b3292405..012f065a 100644
--- a/libdde_linux26/contrib/block/blk-ioc.c
+++ b/libdde_linux26/contrib/block/blk-ioc.c
@@ -171,10 +171,10 @@ void copy_io_context(struct io_context **pdst, struct io_context **psrc)
}
EXPORT_SYMBOL(copy_io_context);
-int __init blk_ioc_init(void)
+static int __init blk_ioc_init(void)
{
iocontext_cachep = kmem_cache_create("blkdev_ioc",
sizeof(struct io_context), 0, SLAB_PANIC, NULL);
return 0;
}
-//subsys_initcall(blk_ioc_init);
+subsys_initcall(blk_ioc_init);