aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/devices/mtd_dataflash.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/devices/mtd_dataflash.c')
-rw-r--r--drivers/mtd/devices/mtd_dataflash.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/mtd/devices/mtd_dataflash.c b/drivers/mtd/devices/mtd_dataflash.c
index d95f74a93bce..62dee54af0a5 100644
--- a/drivers/mtd/devices/mtd_dataflash.c
+++ b/drivers/mtd/devices/mtd_dataflash.c
@@ -664,6 +664,8 @@ add_dataflash_otp(struct spi_device *spi, char *name,
664 device->write = dataflash_write; 664 device->write = dataflash_write;
665 device->priv = priv; 665 device->priv = priv;
666 666
667 device->dev.parent = &spi->dev;
668
667 if (revision >= 'c') 669 if (revision >= 'c')
668 otp_tag = otp_setup(device, revision); 670 otp_tag = otp_setup(device, revision);
669 671