Lines Matching refs:pdev
134 static int tegra20_das_probe(struct platform_device *pdev) in tegra20_das_probe() argument
143 das = devm_kzalloc(&pdev->dev, sizeof(struct tegra20_das), GFP_KERNEL); in tegra20_das_probe()
145 dev_err(&pdev->dev, "Can't allocate tegra20_das\n"); in tegra20_das_probe()
149 das->dev = &pdev->dev; in tegra20_das_probe()
151 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); in tegra20_das_probe()
153 dev_err(&pdev->dev, "No memory resource\n"); in tegra20_das_probe()
158 region = devm_request_mem_region(&pdev->dev, res->start, in tegra20_das_probe()
159 resource_size(res), pdev->name); in tegra20_das_probe()
161 dev_err(&pdev->dev, "Memory region already claimed\n"); in tegra20_das_probe()
166 regs = devm_ioremap(&pdev->dev, res->start, resource_size(res)); in tegra20_das_probe()
168 dev_err(&pdev->dev, "ioremap failed\n"); in tegra20_das_probe()
173 das->regmap = devm_regmap_init_mmio(&pdev->dev, regs, in tegra20_das_probe()
176 dev_err(&pdev->dev, "regmap init failed\n"); in tegra20_das_probe()
184 dev_err(&pdev->dev, "Can't set up DAS DAP connection\n"); in tegra20_das_probe()
190 dev_err(&pdev->dev, "Can't set up DAS DAC connection\n"); in tegra20_das_probe()
197 dev_err(&pdev->dev, "Can't set up DAS DAP connection\n"); in tegra20_das_probe()
203 dev_err(&pdev->dev, "Can't set up DAS DAC connection\n"); in tegra20_das_probe()
207 platform_set_drvdata(pdev, das); in tegra20_das_probe()
216 static int tegra20_das_remove(struct platform_device *pdev) in tegra20_das_remove() argument