diff options
Diffstat (limited to 'drivers/mtd/devices')
-rw-r--r-- | drivers/mtd/devices/sst25l.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/devices/sst25l.c b/drivers/mtd/devices/sst25l.c index ab5d8cd02a15..684247a8a5ed 100644 --- a/drivers/mtd/devices/sst25l.c +++ b/drivers/mtd/devices/sst25l.c | |||
@@ -454,7 +454,7 @@ static int __init sst25l_probe(struct spi_device *spi) | |||
454 | parts, nr_parts); | 454 | parts, nr_parts); |
455 | } | 455 | } |
456 | 456 | ||
457 | } else if (data->nr_parts) { | 457 | } else if (data && data->nr_parts) { |
458 | dev_warn(&spi->dev, "ignoring %d default partitions on %s\n", | 458 | dev_warn(&spi->dev, "ignoring %d default partitions on %s\n", |
459 | data->nr_parts, data->name); | 459 | data->nr_parts, data->name); |
460 | } | 460 | } |