mtd: spi-nor: Decouple SPI NOR's device_node from controller device
[cascardo/linux.git] / drivers / mtd / spi-nor / fsl-quadspi.c
index f28dcc1..f724832 100644 (file)
@@ -1013,6 +1013,7 @@ static int fsl_qspi_probe(struct platform_device *pdev)
                mtd = &nor->mtd;
 
                nor->dev = dev;
+               nor->flash_node = np;
                nor->priv = q;
 
                /* fill the hooks */