Commit 8c15e21c authored by Rafał Miłecki's avatar Rafał Miłecki Committed by Boris Brezillon

mtd: lpddr: use mtd_device_register()

This driver doesn't specify parsers so it can use that little helper.
Signed-off-by: default avatarRafał Miłecki <rafal@milecki.pl>
Signed-off-by: default avatarBoris Brezillon <boris.brezillon@bootlin.com>
parent d70420bc
......@@ -476,7 +476,7 @@ static int lpddr2_nvm_probe(struct platform_device *pdev)
return -EINVAL;
}
/* Parse partitions and register the MTD device */
return mtd_device_parse_register(mtd, NULL, NULL, NULL, 0);
return mtd_device_register(mtd, NULL, 0);
}
/*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment