From: Rafał Miłecki Date: Sat, 21 Jul 2018 11:55:10 +0000 (+0200) Subject: mtd: spi-nor: intel-spi: use mtd_device_register() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=11edc1133e3023e6452d6934c3f22d65a9c05fe8;p=openwrt%2Fstaging%2Fblogic.git 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: Rafał Miłecki Signed-off-by: Boris Brezillon --- diff --git a/drivers/mtd/spi-nor/intel-spi.c b/drivers/mtd/spi-nor/intel-spi.c index d2cbfc27826e..af0a22019516 100644 --- a/drivers/mtd/spi-nor/intel-spi.c +++ b/drivers/mtd/spi-nor/intel-spi.c @@ -908,7 +908,7 @@ struct intel_spi *intel_spi_probe(struct device *dev, if (!ispi->writeable || !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) return ERR_PTR(ret);