diff options
Diffstat (limited to 'drivers/mtd/devices/m25p80.c')
-rw-r--r-- | drivers/mtd/devices/m25p80.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c index 669d2b7e36bb..bf5a002209bd 100644 --- a/drivers/mtd/devices/m25p80.c +++ b/drivers/mtd/devices/m25p80.c | |||
@@ -928,7 +928,7 @@ static int __devinit m25p_probe(struct spi_device *spi) | |||
928 | nr_parts = data->nr_parts; | 928 | nr_parts = data->nr_parts; |
929 | } | 929 | } |
930 | 930 | ||
931 | #ifdef CONFIG_OF | 931 | #ifdef CONFIG_MTD_OF_PARTS |
932 | if (nr_parts <= 0 && spi->dev.of_node) { | 932 | if (nr_parts <= 0 && spi->dev.of_node) { |
933 | nr_parts = of_mtd_parse_partitions(&spi->dev, | 933 | nr_parts = of_mtd_parse_partitions(&spi->dev, |
934 | spi->dev.of_node, &parts); | 934 | spi->dev.of_node, &parts); |