Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
}

/*