kernel/generic: modify mtd related patches for 3.14
authorHauke Mehrtens <hauke@hauke-m.de>
Thu, 8 May 2014 21:51:36 +0000 (21:51 +0000)
committerHauke Mehrtens <hauke@hauke-m.de>
Thu, 8 May 2014 21:51:36 +0000 (21:51 +0000)
commit07f13d4fdb697a0814f339216a865f34bab2f1dd
treec395b211a6be4a24d8fa630ad31010d12a81e4f4
parent291461cd43fc036d20a858c487c93e77f4add4e3
kernel/generic: modify mtd related patches for 3.14

Function register_mtd_parser always returned 0 (at least since v3.3)
before being changed to return void in v3.14-rc1~65^2~93 (mtd: make
register_mtd_parser return void), so it's not needed to check the
return value of this function. Also add __init flag to caller.

This fix compile errors in 3.14 kernel like:
drivers/mtd/mtdsplit_seama.c: In function 'mtdsplit_seama_init':
drivers/mtd/mtdsplit_seama.c:99:2: error: void value not ignored as it ought to be
  return register_mtd_parser(&mtdsplit_seama_parser);
  ^

Signed-off-by: Zhao, Gang <gamerh2o@gmail.com>
SVN-Revision: 40731
target/linux/generic/files/drivers/mtd/mtdsplit_lzma.c
target/linux/generic/files/drivers/mtd/mtdsplit_seama.c
target/linux/generic/files/drivers/mtd/mtdsplit_squashfs.c
target/linux/generic/files/drivers/mtd/mtdsplit_uimage.c
target/linux/generic/files/drivers/mtd/myloader.c