Commit 11edc113 authored by Rafał Miłecki's avatar Rafał Miłecki Committed by Boris Brezillon

mtd: spi-nor: intel-spi: 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 5f0d0227
...@@ -908,7 +908,7 @@ struct intel_spi *intel_spi_probe(struct device *dev, ...@@ -908,7 +908,7 @@ struct intel_spi *intel_spi_probe(struct device *dev,
if (!ispi->writeable || !writeable) if (!ispi->writeable || !writeable)
ispi->nor.mtd.flags &= ~MTD_WRITEABLE; ispi->nor.mtd.flags &= ~MTD_WRITEABLE;
ret = mtd_device_parse_register(&ispi->nor.mtd, NULL, NULL, &part, 1); ret = mtd_device_register(&ispi->nor.mtd, &part, 1);
if (ret) if (ret)
return ERR_PTR(ret); return ERR_PTR(ret);
......
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