kernel/generic: modify mtd related patches for 3.14
[openwrt/openwrt.git] / target / linux / generic / files / drivers / mtd / mtdsplit_squashfs.c
index 7953e8c382abffab7d0cc8e30036d44c5ca8aba7..3d80e078b5f5f1bdf4e181008e6799157ff62f09 100644 (file)
@@ -62,10 +62,11 @@ static struct mtd_part_parser mtdsplit_squashfs_parser = {
        .type = MTD_PARSER_TYPE_ROOTFS,
 };
 
-static int
-mtdsplit_squashfs_init(void)
+static int __init mtdsplit_squashfs_init(void)
 {
-       return register_mtd_parser(&mtdsplit_squashfs_parser);
+       register_mtd_parser(&mtdsplit_squashfs_parser);
+
+       return 0;
 }
 
 subsys_initcall(mtdsplit_squashfs_init);