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:
4db4d35
)
mtd: mchp23k256: switch to mtd_device_register()
author
Chris Packham
<
[email protected]
>
Wed, 24 May 2017 23:49:13 +0000
(11:49 +1200)
committer
Brian Norris
<
[email protected]
>
Thu, 1 Jun 2017 18:28:54 +0000
(11:28 -0700)
Use mtd_device_register() instead of mtd_device_parse_register() to
eliminate two unused parameters.
Signed-off-by: Chris Packham <
[email protected]
>
Reviewed-by: Andrew Lunn <
[email protected]
>
Tested-by: Andrew Lunn <
[email protected]
>
Acked-by: Boris Brezillon <
[email protected]
>
Signed-off-by: Brian Norris <
[email protected]
>
drivers/mtd/devices/mchp23k256.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/devices/mchp23k256.c
b/drivers/mtd/devices/mchp23k256.c
index 9d8306a15833302295034b6c576a97fd711de64e..2542f5b8b63fc4d8157d66692e8e4c1a66747f2e 100644
(file)
--- a/
drivers/mtd/devices/mchp23k256.c
+++ b/
drivers/mtd/devices/mchp23k256.c
@@
-151,9
+151,8
@@
static int mchp23k256_probe(struct spi_device *spi)
flash->mtd._read = mchp23k256_read;
flash->mtd._write = mchp23k256_write;
- err = mtd_device_parse_register(&flash->mtd, NULL, NULL,
- data ? data->parts : NULL,
- data ? data->nr_parts : 0);
+ err = mtd_device_register(&flash->mtd, data ? data->parts : NULL,
+ data ? data->nr_parts : 0);
if (err)
return err;