From: Hauke Mehrtens Date: Thu, 8 May 2014 21:52:04 +0000 (+0000) Subject: kernel: modify mtd related patches for 3.14 X-Git-Tag: v19.07.0-rc1~17940 X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=f5e5477c8135b4a43a9031ca24a2bfc6ec8ff228;p=openwrt%2Fstaging%2Fhauke.git kernel: modify mtd related patches for 3.14 The change is the same as ("kernel/generic: modify mtd related patches"). Since these files are under files directory, not a files directory of specific kernel version, better to also change them. So it will avoid adding files to future specific files directory (e.g. files-3.14) for this mtd related change. Signed-off-by: Zhao, Gang SVN-Revision: 40732 --- diff --git a/target/linux/adm8668/files/drivers/mtd/maps/adm8668.c b/target/linux/adm8668/files/drivers/mtd/maps/adm8668.c index 7ef0adac4b..e07bb40a45 100644 --- a/target/linux/adm8668/files/drivers/mtd/maps/adm8668.c +++ b/target/linux/adm8668/files/drivers/mtd/maps/adm8668.c @@ -246,7 +246,9 @@ static struct mtd_part_parser adm8668_parser = { static int __init adm8668_parser_init(void) { - return register_mtd_parser(&adm8668_parser); + register_mtd_parser(&adm8668_parser); + + return 0; } static void __exit adm8668_parser_exit(void) diff --git a/target/linux/ar71xx/files/drivers/mtd/tplinkpart.c b/target/linux/ar71xx/files/drivers/mtd/tplinkpart.c index cabb96033d..ab952b63e9 100644 --- a/target/linux/ar71xx/files/drivers/mtd/tplinkpart.c +++ b/target/linux/ar71xx/files/drivers/mtd/tplinkpart.c @@ -188,7 +188,9 @@ static struct mtd_part_parser tplink_parser = { static int __init tplink_parser_init(void) { - return register_mtd_parser(&tplink_parser); + register_mtd_parser(&tplink_parser); + + return 0; } module_init(tplink_parser_init); diff --git a/target/linux/ar71xx/files/drivers/mtd/wrt160nl_part.c b/target/linux/ar71xx/files/drivers/mtd/wrt160nl_part.c index 1ced8acc7b..698bba87ea 100644 --- a/target/linux/ar71xx/files/drivers/mtd/wrt160nl_part.c +++ b/target/linux/ar71xx/files/drivers/mtd/wrt160nl_part.c @@ -196,7 +196,9 @@ static struct mtd_part_parser wrt160nl_parser = { static int __init wrt160nl_parser_init(void) { - return register_mtd_parser(&wrt160nl_parser); + register_mtd_parser(&wrt160nl_parser); + + return 0; } module_init(wrt160nl_parser_init); diff --git a/target/linux/at91/files/drivers/mtd/at91part.c b/target/linux/at91/files/drivers/mtd/at91part.c index d9c55ed326..31f3bbd69d 100644 --- a/target/linux/at91/files/drivers/mtd/at91part.c +++ b/target/linux/at91/files/drivers/mtd/at91part.c @@ -110,7 +110,9 @@ static struct mtd_part_parser at91_parser = { static int __init at91_parser_init(void) { - return register_mtd_parser(&at91_parser); + register_mtd_parser(&at91_parser); + + return 0; } module_init(at91_parser_init);