Lines Matching defs:dev
26 static int rbtx4939_flash_remove(struct platform_device *dev)
30 info = platform_get_drvdata(dev);
44 static int rbtx4939_flash_probe(struct platform_device *dev)
53 pdata = dev_get_platdata(&dev->dev);
57 res = platform_get_resource(dev, IORESOURCE_MEM, 0);
60 info = devm_kzalloc(&dev->dev, sizeof(struct rbtx4939_flash_info),
65 platform_set_drvdata(dev, info);
70 if (!devm_request_mem_region(&dev->dev, res->start, size,
71 dev_name(&dev->dev)))
74 info->map.name = dev_name(&dev->dev);
79 info->map.virt = devm_ioremap(&dev->dev, info->map.phys, size);
92 dev_err(&dev->dev, "map_probe failed\n");
96 info->mtd->dev.parent = &dev->dev;
104 rbtx4939_flash_remove(dev);
109 static void rbtx4939_flash_shutdown(struct platform_device *dev)
111 struct rbtx4939_flash_info *info = platform_get_drvdata(dev);