Lines Matching defs:dev
30 struct device *dev;
41 static inline struct platram_info *to_platram_info(struct platform_device *dev)
43 return platform_get_drvdata(dev);
60 (info->pdata->set_rw)(info->dev, to);
72 dev_dbg(&pdev->dev, "removing device\n");
104 dev_dbg(&pdev->dev, "probe entered\n");
106 if (dev_get_platdata(&pdev->dev) == NULL) {
107 dev_err(&pdev->dev, "no platform data supplied\n");
112 pdata = dev_get_platdata(&pdev->dev);
122 info->dev = &pdev->dev;
132 dev_dbg(&pdev->dev, "got platform resource %p (0x%llx)\n", res,
143 dev_dbg(&pdev->dev, "virt %p, %lu bytes\n", info->map.virt, info->map.size);
147 dev_dbg(&pdev->dev, "initialised map, probing for mtd\n");
163 dev_err(&pdev->dev, "failed to probe for map_ram\n");
168 info->mtd->dev.parent = &pdev->dev;
179 dev_err(&pdev->dev, "failed to register mtd device\n");
183 dev_info(&pdev->dev, "registered mtd device\n");
189 dev_err(&pdev->dev,