diff options
Diffstat (limited to 'drivers/mtd/devices/sst25l.c')
-rw-r--r-- | drivers/mtd/devices/sst25l.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/mtd/devices/sst25l.c b/drivers/mtd/devices/sst25l.c index 51b2df33b8e9..ab8a2f4c8d60 100644 --- a/drivers/mtd/devices/sst25l.c +++ b/drivers/mtd/devices/sst25l.c | |||
@@ -399,9 +399,9 @@ static int __devinit sst25l_probe(struct spi_device *spi) | |||
399 | flash->mtd.numeraseregions); | 399 | flash->mtd.numeraseregions); |
400 | 400 | ||
401 | 401 | ||
402 | ret = mtd_device_parse_register(&flash->mtd, NULL, 0, | 402 | ret = mtd_device_parse_register(&flash->mtd, NULL, NULL, |
403 | data ? data->parts : NULL, | 403 | data ? data->parts : NULL, |
404 | data ? data->nr_parts : 0); | 404 | data ? data->nr_parts : 0); |
405 | if (ret) { | 405 | if (ret) { |
406 | kfree(flash); | 406 | kfree(flash); |
407 | dev_set_drvdata(&spi->dev, NULL); | 407 | dev_set_drvdata(&spi->dev, NULL); |