Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1642991
| From | Chris Packham <chris.packham@alliedtelesis.co.nz> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 2/4] mtd: mchp23k256: switch to mtd_device_register() |
| Date | 2017-05-17 07:50 +0200 |
| Message-ID | <tI00p-7v7-9@gated-at.bofh.it> (permalink) |
| References | <tHZQK-7s4-19@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Use mtd_device_register() instead of mtd_device_parse_register() to eliminate two unused parameters. Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz> --- drivers/mtd/devices/mchp23k256.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/mtd/devices/mchp23k256.c b/drivers/mtd/devices/mchp23k256.c index 9d8306a15833..2542f5b8b63f 100644 --- 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; -- 2.11.0.24.ge6920cf
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 0/4] mtd: mchp23k256: device tree and mchp23lcv1024 Chris Packham <chris.packham@alliedtelesis.co.nz> - 2017-05-17 07:40 +0200
[PATCH 1/4] mtd: mchp23k256: Add OF device ID table Chris Packham <chris.packham@alliedtelesis.co.nz> - 2017-05-17 07:50 +0200
Re: [PATCH 1/4] mtd: mchp23k256: Add OF device ID table Andrew Lunn <andrew@lunn.ch> - 2017-05-17 13:50 +0200
[PATCH 2/4] mtd: mchp23k256: switch to mtd_device_register() Chris Packham <chris.packham@alliedtelesis.co.nz> - 2017-05-17 07:50 +0200
Re: [PATCH 2/4] mtd: mchp23k256: switch to mtd_device_register() Andrew Lunn <andrew@lunn.ch> - 2017-05-17 13:50 +0200
[PATCH 3/4] mtd: mchp23k256: add partitioning support Chris Packham <chris.packham@alliedtelesis.co.nz> - 2017-05-17 07:50 +0200
Re: [PATCH 3/4] mtd: mchp23k256: add partitioning support Andrew Lunn <andrew@lunn.ch> - 2017-05-17 16:20 +0200
Re: [PATCH 3/4] mtd: mchp23k256: add partitioning support Boris Brezillon <boris.brezillon@free-electrons.com> - 2017-05-17 17:30 +0200
Re: [PATCH 3/4] mtd: mchp23k256: add partitioning support Chris Packham <Chris.Packham@alliedtelesis.co.nz> - 2017-05-22 07:00 +0200
Re: [PATCH 3/4] mtd: mchp23k256: add partitioning support Boris Brezillon <boris.brezillon@free-electrons.com> - 2017-05-22 09:40 +0200
Re: [PATCH 0/4] mtd: mchp23k256: device tree and mchp23lcv1024 Andrew Lunn <andrew@lunn.ch> - 2017-05-17 13:50 +0200
Re: [PATCH 0/4] mtd: mchp23k256: device tree and mchp23lcv1024 Andrew Lunn <andrew@lunn.ch> - 2017-05-17 16:20 +0200
csiph-web