diff options
Diffstat (limited to 'drivers/mtd/devices/mtd_dataflash.c')
-rw-r--r-- | drivers/mtd/devices/mtd_dataflash.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/devices/mtd_dataflash.c b/drivers/mtd/devices/mtd_dataflash.c index 99d3a0320fc9..155737e7483f 100644 --- a/drivers/mtd/devices/mtd_dataflash.c +++ b/drivers/mtd/devices/mtd_dataflash.c | |||
@@ -508,7 +508,7 @@ add_dataflash(struct spi_device *spi, char *name, | |||
508 | priv->partitioned = 1; | 508 | priv->partitioned = 1; |
509 | return add_mtd_partitions(device, parts, nr_parts); | 509 | return add_mtd_partitions(device, parts, nr_parts); |
510 | } | 510 | } |
511 | } else if (pdata->nr_parts) | 511 | } else if (pdata && pdata->nr_parts) |
512 | dev_warn(&spi->dev, "ignoring %d default partitions on %s\n", | 512 | dev_warn(&spi->dev, "ignoring %d default partitions on %s\n", |
513 | pdata->nr_parts, device->name); | 513 | pdata->nr_parts, device->name); |
514 | 514 | ||