projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d70420b
)
mtd: lpddr: use mtd_device_register()
author
Rafał Miłecki
<rafal@milecki.pl>
Sat, 21 Jul 2018 11:55:09 +0000
(13:55 +0200)
committer
Boris Brezillon
<boris.brezillon@bootlin.com>
Tue, 24 Jul 2018 05:50:22 +0000
(07:50 +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/lpddr/lpddr2_nvm.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/lpddr/lpddr2_nvm.c
b/drivers/mtd/lpddr/lpddr2_nvm.c
index 5d73db2a496de2693ade04d28bcfb25ce814d7db..c950c880ad5904676e1e16e6433bafc3809ba2cf 100644
(file)
--- a/
drivers/mtd/lpddr/lpddr2_nvm.c
+++ b/
drivers/mtd/lpddr/lpddr2_nvm.c
@@
-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);
}
/*