diff options
author | Rafał Miłecki <rafal@milecki.pl> | 2018-07-13 11:27:34 +0200 |
---|---|---|
committer | Boris Brezillon <boris.brezillon@bootlin.com> | 2018-07-18 16:32:38 +0200 |
commit | 39675caa06e77547cf0692f854dce015e1b5c36b (patch) | |
tree | 220fc54845d2660d1c05c3e4f0f2fc462d92ba3a /drivers/mtd/devices/sst25l.c | |
parent | 4897015d2ffb78c3064eeffa2d4022c5be3ea18f (diff) | |
download | talos-op-linux-39675caa06e77547cf0692f854dce015e1b5c36b.tar.gz talos-op-linux-39675caa06e77547cf0692f854dce015e1b5c36b.zip |
mtd: sst25l: use mtd_device_register()
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>
Diffstat (limited to 'drivers/mtd/devices/sst25l.c')
-rw-r--r-- | drivers/mtd/devices/sst25l.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/mtd/devices/sst25l.c b/drivers/mtd/devices/sst25l.c index 1897f33fe3e7..10d24efb4629 100644 --- 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; |