diff options
author | Zheng Da <zhengda1936@gmail.com> | 2010-01-16 01:21:07 +0100 |
---|---|---|
committer | Zheng Da <zhengda1936@gmail.com> | 2010-01-16 01:21:07 +0100 |
commit | 2680eecc499e43679be098e5834d4f3a62f59a0c (patch) | |
tree | 32771b7ae2f930a6f107f9c86d7de03f9622f03f /libdde_linux26/lib/src/block | |
parent | 51299b970600d28df634708557f80df3526014ae (diff) |
prepare to use initcall to do initialization.
Diffstat (limited to 'libdde_linux26/lib/src/block')
-rw-r--r-- | libdde_linux26/lib/src/block/genhd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libdde_linux26/lib/src/block/genhd.c b/libdde_linux26/lib/src/block/genhd.c index f9a205f5..921cebff 100644 --- a/libdde_linux26/lib/src/block/genhd.c +++ b/libdde_linux26/lib/src/block/genhd.c @@ -792,7 +792,7 @@ static struct kobject *base_probe(dev_t devt, int *partno, void *data) return NULL; } -int __init genhd_device_init(void) +static int __init genhd_device_init(void) { int error; @@ -812,7 +812,7 @@ int __init genhd_device_init(void) return 0; } -//subsys_initcall(genhd_device_init); +subsys_initcall(genhd_device_init); static ssize_t disk_range_show(struct device *dev, struct device_attribute *attr, char *buf) |