diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2014-05-08 21:51:36 +0000 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2014-05-08 21:51:36 +0000 |
commit | c09007c1af489f59dcd13c654b58550f5050d433 (patch) | |
tree | 629e1d47859e1b8224b0303ea987708c49f3a4fc /target/linux/ar71xx/files/drivers/mtd/wrt160nl_part.c | |
parent | f603f984c6bcbeb4a57c9952f5873725758a195e (diff) | |
download | upstream-c09007c1af489f59dcd13c654b58550f5050d433.tar.gz upstream-c09007c1af489f59dcd13c654b58550f5050d433.tar.bz2 upstream-c09007c1af489f59dcd13c654b58550f5050d433.zip |
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
Diffstat (limited to 'target/linux/ar71xx/files/drivers/mtd/wrt160nl_part.c')
0 files changed, 0 insertions, 0 deletions