Lines Matching defs:dev
55 struct device *dev = skt->socket.dev.parent;
58 skt->gpio_reset = devm_gpiod_get(dev, "reset", GPIOD_OUT_HIGH);
62 skt->gpio_bus_enable = devm_gpiod_get_optional(dev, "bus-enable",
67 skt->vcc.reg = devm_regulator_get_optional(dev, "vcc");
72 dev_warn(dev,
77 skt->stat[i].desc = devm_gpiod_get_optional(dev,
98 int __init pcmcia_collie_init(struct device *dev);
100 static int (*sa11x0_pcmcia_legacy_hw_init[])(struct device *dev) = {
109 static int sa11x0_drv_pcmcia_legacy_probe(struct platform_device *dev)
117 ret = sa11x0_pcmcia_legacy_hw_init[i](&dev->dev);
125 static void sa11x0_drv_pcmcia_legacy_remove(struct platform_device *dev)
127 struct skt_dev_info *sinfo = platform_get_drvdata(dev);
130 platform_set_drvdata(dev, NULL);
139 struct device *dev = &pdev->dev;
144 skt = devm_kzalloc(dev, sizeof(*skt), GFP_KERNEL);
151 skt->clk = devm_clk_get(dev, NULL);
156 soc_pcmcia_init_one(skt, &sa11x0_cf_ops, dev);
161 static int sa11x0_drv_pcmcia_remove(struct platform_device *dev)
165 if (dev->id == -1) {
166 sa11x0_drv_pcmcia_legacy_remove(dev);
170 skt = platform_get_drvdata(dev);