projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f0d022
)
mtd: spi-nor: intel-spi: use mtd_device_register()
author
Rafał Miłecki
<rafal@milecki.pl>
Sat, 21 Jul 2018 11:55:10 +0000
(13:55 +0200)
committer
Boris Brezillon
<boris.brezillon@bootlin.com>
Wed, 1 Aug 2018 07:18:55 +0000
(09:18 +0200)
This driver doesn't specify parsers so it can use that little helper.
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
drivers/mtd/spi-nor/intel-spi.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/spi-nor/intel-spi.c
b/drivers/mtd/spi-nor/intel-spi.c
index d2cbfc27826ec654b7c78ae4e54edd08930a3a30..af0a220195163ceaf9382e78acf12926494258ba 100644
(file)
--- 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);