Lines Matching defs:flash
625 struct device_node *flash;
629 flash = of_get_next_child(pdev->dev.of_node, NULL);
630 if (!flash) {
631 dev_warn(&pdev->dev, "no flash node found\n");
635 if (of_device_is_compatible(flash, "jedec,spi-nor")) {
637 } else if (of_device_is_compatible(flash, "cfi-flash")) {
640 of_node_put(flash);
641 dev_warn(&pdev->dev, "unknown flash type\n");
644 of_node_put(flash);