Lines Matching defs:dev
37 static int __devinit xilinx_spi_probe(struct platform_device *dev)
45 pdata = dev->dev.platform_data;
49 r = platform_get_resource(dev, IORESOURCE_MEM, 0);
53 irq = platform_get_irq(dev, 0);
57 master = xilinx_spi_init(&dev->dev, r, irq, dev->id);
64 platform_set_drvdata(dev, master);
68 static int __devexit xilinx_spi_remove(struct platform_device *dev)
70 xilinx_spi_deinit(platform_get_drvdata(dev));
71 platform_set_drvdata(dev, 0);