Lines Matching refs:ofdev
33 struct platform_device *ofdev; member
158 mtd->dev.parent = &ndfc->ofdev->dev; in ndfc_chip_init()
165 mtd->name = kasprintf(GFP_KERNEL, "%s.%pOFn", dev_name(&ndfc->ofdev->dev), in ndfc_chip_init()
185 static int ndfc_probe(struct platform_device *ofdev) in ndfc_probe() argument
194 reg = of_get_property(ofdev->dev.of_node, "reg", &len); in ndfc_probe()
196 dev_err(&ofdev->dev, "unable read reg property (%d)\n", len); in ndfc_probe()
202 dev_err(&ofdev->dev, "invalid CS number (%d)\n", cs); in ndfc_probe()
210 ndfc->ofdev = ofdev; in ndfc_probe()
211 dev_set_drvdata(&ofdev->dev, ndfc); in ndfc_probe()
213 ndfc->ndfcbase = of_iomap(ofdev->dev.of_node, 0); in ndfc_probe()
215 dev_err(&ofdev->dev, "failed to get memory\n"); in ndfc_probe()
222 reg = of_get_property(ofdev->dev.of_node, "ccr", NULL); in ndfc_probe()
229 reg = of_get_property(ofdev->dev.of_node, "bank-settings", NULL); in ndfc_probe()
235 err = ndfc_chip_init(ndfc, ofdev->dev.of_node); in ndfc_probe()
244 static void ndfc_remove(struct platform_device *ofdev) in ndfc_remove() argument
246 struct ndfc_controller *ndfc = dev_get_drvdata(&ofdev->dev); in ndfc_remove()