Lines Matching refs:ofdev
1452 static int sata_fsl_probe(struct platform_device *ofdev) in sata_fsl_probe() argument
1466 dev_info(&ofdev->dev, "Sata FSL Platform/CSB Driver init\n"); in sata_fsl_probe()
1468 hcr_base = of_iomap(ofdev->dev.of_node, 0); in sata_fsl_probe()
1475 if (!of_device_is_compatible(ofdev->dev.of_node, "fsl,mpc8315-sata")) { in sata_fsl_probe()
1493 irq = irq_of_parse_and_map(ofdev->dev.of_node, 0); in sata_fsl_probe()
1495 dev_err(&ofdev->dev, "invalid irq from platform\n"); in sata_fsl_probe()
1500 if (of_device_is_compatible(ofdev->dev.of_node, "fsl,pq-sata-v2")) in sata_fsl_probe()
1506 host = ata_host_alloc_pinfo(&ofdev->dev, ppi, SATA_FSL_MAX_PORTS); in sata_fsl_probe()
1526 platform_set_drvdata(ofdev, host); in sata_fsl_probe()
1544 device_remove_file(&ofdev->dev, &host_priv->intr_coalescing); in sata_fsl_probe()
1562 static int sata_fsl_remove(struct platform_device *ofdev) in sata_fsl_remove() argument
1564 struct ata_host *host = platform_get_drvdata(ofdev); in sata_fsl_remove()
1567 device_remove_file(&ofdev->dev, &host_priv->intr_coalescing); in sata_fsl_remove()
1568 device_remove_file(&ofdev->dev, &host_priv->rx_watermark); in sata_fsl_remove()