mtd: rawnand: use mtd_device_register() where applicable
If driver doesn't specify parsers it can use that little helper. Signed-off-by: Rafał Miłecki <rafal@milecki.pl> Acked-by: Xiaolei Li <xiaolei.li@mediatek.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
This commit is contained in:

committed by
Miquel Raynal

parent
c2204734bb
commit
29597ca14d
@@ -310,8 +310,7 @@ static int __init cs553x_init(void)
|
||||
for (i = 0; i < NR_CS553X_CONTROLLERS; i++) {
|
||||
if (cs553x_mtd[i]) {
|
||||
/* If any devices registered, return success. Else the last error. */
|
||||
mtd_device_parse_register(cs553x_mtd[i], NULL, NULL,
|
||||
NULL, 0);
|
||||
mtd_device_register(cs553x_mtd[i], NULL, 0);
|
||||
err = 0;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user