Lines Matching refs:pdev
42 int dw_mci_pltfm_register(struct platform_device *pdev, in dw_mci_pltfm_register() argument
48 host = devm_kzalloc(&pdev->dev, sizeof(struct dw_mci), GFP_KERNEL); in dw_mci_pltfm_register()
52 host->irq = platform_get_irq(pdev, 0); in dw_mci_pltfm_register()
57 host->dev = &pdev->dev; in dw_mci_pltfm_register()
59 host->pdata = pdev->dev.platform_data; in dw_mci_pltfm_register()
61 regs = platform_get_resource(pdev, IORESOURCE_MEM, 0); in dw_mci_pltfm_register()
62 host->regs = devm_ioremap_resource(&pdev->dev, regs); in dw_mci_pltfm_register()
66 platform_set_drvdata(pdev, host); in dw_mci_pltfm_register()
103 static int dw_mci_pltfm_probe(struct platform_device *pdev) in dw_mci_pltfm_probe() argument
108 if (pdev->dev.of_node) { in dw_mci_pltfm_probe()
109 match = of_match_node(dw_mci_pltfm_match, pdev->dev.of_node); in dw_mci_pltfm_probe()
113 return dw_mci_pltfm_register(pdev, drv_data); in dw_mci_pltfm_probe()
116 int dw_mci_pltfm_remove(struct platform_device *pdev) in dw_mci_pltfm_remove() argument
118 struct dw_mci *host = platform_get_drvdata(pdev); in dw_mci_pltfm_remove()