Home
last modified time | relevance | path

Searched refs:of_dev (Results 1 – 10 of 10) sorted by relevance

/linux/drivers/macintosh/ams/
H A Dams-core.c149 ams_info.of_dev = of_platform_device_create(ams_info.of_node, "ams", NULL); in ams_sensor_attach()
150 if (!ams_info.of_dev) { in ams_sensor_attach()
156 result = device_create_file(&ams_info.of_dev->dev, &dev_attr_current); in ams_sensor_attach()
169 device_remove_file(&ams_info.of_dev->dev, &dev_attr_current); in ams_sensor_attach()
171 of_device_unregister(ams_info.of_dev); in ams_sensor_attach()
209 device_remove_file(&ams_info.of_dev->dev, &dev_attr_current); in ams_sensor_detach()
219 of_device_unregister(ams_info.of_dev); in ams_sensor_detach()
H A Dams-input.c68 input->dev.parent = &ams_info.of_dev->dev; in ams_input_enable()
146 return device_create_file(&ams_info.of_dev->dev, &dev_attr_joystick); in ams_input_init()
151 device_remove_file(&ams_info.of_dev->dev, &dev_attr_joystick); in ams_input_exit()
H A Dams.h30 struct platform_device *of_dev; member
/linux/drivers/macintosh/
H A Dtherm_windtunnel.c55 struct platform_device *of_dev; member
256 err = device_create_file( &x.of_dev->dev, &dev_attr_cpu_temperature ); in setup_hardware()
257 err |= device_create_file( &x.of_dev->dev, &dev_attr_case_temperature ); in setup_hardware()
266 device_remove_file( &x.of_dev->dev, &dev_attr_cpu_temperature ); in restore_regs()
267 device_remove_file( &x.of_dev->dev, &dev_attr_case_temperature ); in restore_regs()
534 x.of_dev = of_platform_device_create(np, "temperature", NULL); in g4fan_init()
537 if( !x.of_dev ) { in g4fan_init()
551 if( x.of_dev ) in g4fan_exit()
552 of_platform_device_destroy(&x.of_dev->dev, NULL); in g4fan_exit()
H A Dsmu.c77 struct platform_device *of_dev; member
643 &smu->of_dev->dev); in smu_expose_childs()
652 smu->of_dev = dev; in smu_platform_probe()
697 return smu->of_dev; in smu_get_ofdev()
/linux/arch/powerpc/platforms/pseries/
H A Dibmebus.c356 struct platform_device *of_dev; in ibmebus_bus_device_probe() local
359 of_dev = to_platform_device(dev); in ibmebus_bus_device_probe()
367 error = drv->probe(of_dev); in ibmebus_bus_device_probe()
376 struct platform_device *of_dev = to_platform_device(dev); in ibmebus_bus_device_remove() local
380 drv->remove(of_dev); in ibmebus_bus_device_remove()
385 struct platform_device *of_dev = to_platform_device(dev); in ibmebus_bus_device_shutdown() local
389 drv->shutdown(of_dev); in ibmebus_bus_device_shutdown()
/linux/drivers/input/serio/
H A Dxilinx_ps2.c326 static void xps2_of_remove(struct platform_device *of_dev) in xps2_of_remove() argument
328 struct xps2data *drvdata = platform_get_drvdata(of_dev); in xps2_of_remove()
335 if (of_address_to_resource(of_dev->dev.of_node, 0, &r_mem)) in xps2_of_remove()
H A Dapbps2.c190 static void apbps2_of_remove(struct platform_device *of_dev) in apbps2_of_remove() argument
192 struct apbps2_priv *priv = platform_get_drvdata(of_dev); in apbps2_of_remove()
/linux/drivers/net/ethernet/aeroflex/
H A Dgreth.c1529 static void greth_of_remove(struct platform_device *of_dev) in greth_of_remove() argument
1531 struct net_device *ndev = platform_get_drvdata(of_dev); in greth_of_remove()
1535 dma_free_coherent(&of_dev->dev, 1024, greth->rx_bd_base, greth->rx_bd_base_phys); in greth_of_remove()
1537 dma_free_coherent(&of_dev->dev, 1024, greth->tx_bd_base, greth->tx_bd_base_phys); in greth_of_remove()
1545 of_iounmap(&of_dev->resource[0], greth->regs, resource_size(&of_dev->resource[0])); in greth_of_remove()
/linux/drivers/net/ethernet/freescale/fman/
H A Dfman_port.c1742 static int fman_port_probe(struct platform_device *of_dev) in fman_port_probe() argument
1760 port->dev = &of_dev->dev; in fman_port_probe()
1762 port_node = of_node_get(of_dev->dev.of_node); in fman_port_probe()
1869 dev_set_drvdata(&of_dev->dev, port); in fman_port_probe()