projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4897015
)
mtd: sst25l: use mtd_device_register()
author
Rafał Miłecki
<rafal@milecki.pl>
Fri, 13 Jul 2018 09:27:34 +0000
(11:27 +0200)
committer
Boris Brezillon
<boris.brezillon@bootlin.com>
Wed, 18 Jul 2018 14:32:38 +0000
(16:32 +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/devices/sst25l.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/devices/sst25l.c
b/drivers/mtd/devices/sst25l.c
index 1897f33fe3e71dea5c6d75e794f83a7bfe129082..10d24efb46291e092ac96c9c62ccd0db322c5aac 100644
(file)
--- a/
drivers/mtd/devices/sst25l.c
+++ b/
drivers/mtd/devices/sst25l.c
@@
-394,9
+394,8
@@
static int sst25l_probe(struct spi_device *spi)
flash->mtd.numeraseregions);
- ret = mtd_device_parse_register(&flash->mtd, NULL, NULL,
- data ? data->parts : NULL,
- data ? data->nr_parts : 0);
+ ret = mtd_device_register(&flash->mtd, data ? data->parts : NULL,
+ data ? data->nr_parts : 0);
if (ret)
return -ENODEV;