of_dev 349 arch/powerpc/platforms/pseries/ibmebus.c struct platform_device *of_dev; of_dev 352 arch/powerpc/platforms/pseries/ibmebus.c of_dev = to_platform_device(dev); of_dev 357 arch/powerpc/platforms/pseries/ibmebus.c of_dev_get(of_dev); of_dev 360 arch/powerpc/platforms/pseries/ibmebus.c error = drv->probe(of_dev); of_dev 362 arch/powerpc/platforms/pseries/ibmebus.c of_dev_put(of_dev); of_dev 369 arch/powerpc/platforms/pseries/ibmebus.c struct platform_device *of_dev = to_platform_device(dev); of_dev 373 arch/powerpc/platforms/pseries/ibmebus.c drv->remove(of_dev); of_dev 379 arch/powerpc/platforms/pseries/ibmebus.c struct platform_device *of_dev = to_platform_device(dev); of_dev 383 arch/powerpc/platforms/pseries/ibmebus.c drv->shutdown(of_dev); of_dev 193 drivers/input/serio/apbps2.c static int apbps2_of_remove(struct platform_device *of_dev) of_dev 195 drivers/input/serio/apbps2.c struct apbps2_priv *priv = platform_get_drvdata(of_dev); of_dev 332 drivers/input/serio/xilinx_ps2.c static int xps2_of_remove(struct platform_device *of_dev) of_dev 334 drivers/input/serio/xilinx_ps2.c struct xps2data *drvdata = platform_get_drvdata(of_dev); of_dev 341 drivers/input/serio/xilinx_ps2.c if (of_address_to_resource(of_dev->dev.of_node, 0, &r_mem)) of_dev 149 drivers/macintosh/ams/ams-core.c ams_info.of_dev = of_platform_device_create(ams_info.of_node, "ams", NULL); of_dev 150 drivers/macintosh/ams/ams-core.c if (!ams_info.of_dev) { of_dev 156 drivers/macintosh/ams/ams-core.c result = device_create_file(&ams_info.of_dev->dev, &dev_attr_current); of_dev 169 drivers/macintosh/ams/ams-core.c device_remove_file(&ams_info.of_dev->dev, &dev_attr_current); of_dev 171 drivers/macintosh/ams/ams-core.c of_device_unregister(ams_info.of_dev); of_dev 209 drivers/macintosh/ams/ams-core.c device_remove_file(&ams_info.of_dev->dev, &dev_attr_current); of_dev 219 drivers/macintosh/ams/ams-core.c of_device_unregister(ams_info.of_dev); of_dev 73 drivers/macintosh/ams/ams-input.c input->dev.parent = &ams_info.of_dev->dev; of_dev 147 drivers/macintosh/ams/ams-input.c return device_create_file(&ams_info.of_dev->dev, &dev_attr_joystick); of_dev 152 drivers/macintosh/ams/ams-input.c device_remove_file(&ams_info.of_dev->dev, &dev_attr_joystick); of_dev 27 drivers/macintosh/ams/ams.h struct platform_device *of_dev; of_dev 76 drivers/macintosh/smu.c struct platform_device *of_dev; of_dev 644 drivers/macintosh/smu.c &smu->of_dev->dev); of_dev 653 drivers/macintosh/smu.c smu->of_dev = dev; of_dev 698 drivers/macintosh/smu.c return smu->of_dev; of_dev 54 drivers/macintosh/therm_windtunnel.c struct platform_device *of_dev; of_dev 255 drivers/macintosh/therm_windtunnel.c err = device_create_file( &x.of_dev->dev, &dev_attr_cpu_temperature ); of_dev 256 drivers/macintosh/therm_windtunnel.c err |= device_create_file( &x.of_dev->dev, &dev_attr_case_temperature ); of_dev 265 drivers/macintosh/therm_windtunnel.c device_remove_file( &x.of_dev->dev, &dev_attr_cpu_temperature ); of_dev 266 drivers/macintosh/therm_windtunnel.c device_remove_file( &x.of_dev->dev, &dev_attr_case_temperature ); of_dev 534 drivers/macintosh/therm_windtunnel.c x.of_dev = of_platform_device_create(np, "temperature", NULL); of_dev 537 drivers/macintosh/therm_windtunnel.c if( !x.of_dev ) { of_dev 551 drivers/macintosh/therm_windtunnel.c if( x.of_dev ) of_dev 552 drivers/macintosh/therm_windtunnel.c of_device_unregister( x.of_dev ); of_dev 1529 drivers/net/ethernet/aeroflex/greth.c static int greth_of_remove(struct platform_device *of_dev) of_dev 1531 drivers/net/ethernet/aeroflex/greth.c struct net_device *ndev = platform_get_drvdata(of_dev); of_dev 1535 drivers/net/ethernet/aeroflex/greth.c dma_free_coherent(&of_dev->dev, 1024, greth->rx_bd_base, greth->rx_bd_base_phys); of_dev 1537 drivers/net/ethernet/aeroflex/greth.c dma_free_coherent(&of_dev->dev, 1024, greth->tx_bd_base, greth->tx_bd_base_phys); of_dev 1546 drivers/net/ethernet/aeroflex/greth.c of_iounmap(&of_dev->resource[0], greth->regs, resource_size(&of_dev->resource[0])); of_dev 2713 drivers/net/ethernet/freescale/fman/fman.c static struct fman *read_dts_node(struct platform_device *of_dev) of_dev 2729 drivers/net/ethernet/freescale/fman/fman.c fm_node = of_node_get(of_dev->dev.of_node); of_dev 2733 drivers/net/ethernet/freescale/fman/fman.c dev_err(&of_dev->dev, "%s: failed to read cell-index for %pOF\n", of_dev 2740 drivers/net/ethernet/freescale/fman/fman.c res = platform_get_resource(of_dev, IORESOURCE_IRQ, 0); of_dev 2742 drivers/net/ethernet/freescale/fman/fman.c dev_err(&of_dev->dev, "%s: Can't get FMan IRQ resource\n", of_dev 2749 drivers/net/ethernet/freescale/fman/fman.c res = platform_get_resource(of_dev, IORESOURCE_IRQ, 1); of_dev 2751 drivers/net/ethernet/freescale/fman/fman.c dev_err(&of_dev->dev, "%s: Can't get FMan Error IRQ resource\n", of_dev 2758 drivers/net/ethernet/freescale/fman/fman.c res = platform_get_resource(of_dev, IORESOURCE_MEM, 0); of_dev 2760 drivers/net/ethernet/freescale/fman/fman.c dev_err(&of_dev->dev, "%s: Can't get FMan memory resource\n", of_dev 2770 drivers/net/ethernet/freescale/fman/fman.c dev_err(&of_dev->dev, "%s: Failed to get FM%d clock structure\n", of_dev 2777 drivers/net/ethernet/freescale/fman/fman.c dev_err(&of_dev->dev, "%s: Failed to determine FM%d clock rate\n", of_dev 2787 drivers/net/ethernet/freescale/fman/fman.c dev_err(&of_dev->dev, "%s: failed to read fsl,qman-channel-range for %pOF\n", of_dev 2797 drivers/net/ethernet/freescale/fman/fman.c dev_err(&of_dev->dev, "%s: could not find MURAM node\n", of_dev 2806 drivers/net/ethernet/freescale/fman/fman.c dev_err(&of_dev->dev, "%s: of_address_to_resource() = %d\n", of_dev 2813 drivers/net/ethernet/freescale/fman/fman.c err = devm_request_irq(&of_dev->dev, irq, fman_irq, IRQF_SHARED, of_dev 2816 drivers/net/ethernet/freescale/fman/fman.c dev_err(&of_dev->dev, "%s: irq %d allocation failed (error = %d)\n", of_dev 2822 drivers/net/ethernet/freescale/fman/fman.c err = devm_request_irq(&of_dev->dev, fman->dts_params.err_irq, of_dev 2826 drivers/net/ethernet/freescale/fman/fman.c dev_err(&of_dev->dev, "%s: irq %d allocation failed (error = %d)\n", of_dev 2833 drivers/net/ethernet/freescale/fman/fman.c devm_request_mem_region(&of_dev->dev, phys_base_addr, of_dev 2836 drivers/net/ethernet/freescale/fman/fman.c dev_err(&of_dev->dev, "%s: request_mem_region() failed\n", of_dev 2842 drivers/net/ethernet/freescale/fman/fman.c devm_ioremap(&of_dev->dev, phys_base_addr, mem_size); of_dev 2844 drivers/net/ethernet/freescale/fman/fman.c dev_err(&of_dev->dev, "%s: devm_ioremap() failed\n", __func__); of_dev 2848 drivers/net/ethernet/freescale/fman/fman.c fman->dev = &of_dev->dev; of_dev 2850 drivers/net/ethernet/freescale/fman/fman.c err = of_platform_populate(fm_node, NULL, NULL, &of_dev->dev); of_dev 2852 drivers/net/ethernet/freescale/fman/fman.c dev_err(&of_dev->dev, "%s: of_platform_populate() failed\n", of_dev 2871 drivers/net/ethernet/freescale/fman/fman.c static int fman_probe(struct platform_device *of_dev) of_dev 2877 drivers/net/ethernet/freescale/fman/fman.c dev = &of_dev->dev; of_dev 2879 drivers/net/ethernet/freescale/fman/fman.c fman = read_dts_node(of_dev); of_dev 1754 drivers/net/ethernet/freescale/fman/fman_port.c static int fman_port_probe(struct platform_device *of_dev) of_dev 1771 drivers/net/ethernet/freescale/fman/fman_port.c port->dev = &of_dev->dev; of_dev 1773 drivers/net/ethernet/freescale/fman/fman_port.c port_node = of_node_get(of_dev->dev.of_node); of_dev 1874 drivers/net/ethernet/freescale/fman/fman_port.c dev_set_drvdata(&of_dev->dev, port); of_dev 605 drivers/net/ethernet/freescale/fman/mac.c struct platform_device *of_dev; of_dev 659 drivers/net/ethernet/freescale/fman/mac.c of_dev = of_find_device_by_node(dev_node); of_dev 660 drivers/net/ethernet/freescale/fman/mac.c if (!of_dev) { of_dev 676 drivers/net/ethernet/freescale/fman/mac.c priv->fman = fman_bind(&of_dev->dev); of_dev 760 drivers/net/ethernet/freescale/fman/mac.c of_dev = of_find_device_by_node(dev_node); of_dev 761 drivers/net/ethernet/freescale/fman/mac.c if (!of_dev) { of_dev 768 drivers/net/ethernet/freescale/fman/mac.c mac_dev->port[i] = fman_port_bind(&of_dev->dev); of_dev 1214 drivers/net/ethernet/xilinx/xilinx_emaclite.c static int xemaclite_of_remove(struct platform_device *of_dev) of_dev 1216 drivers/net/ethernet/xilinx/xilinx_emaclite.c struct net_device *ndev = platform_get_drvdata(of_dev);