Searched refs:of_dev (Results 1 - 10 of 10) sorted by relevance
/linux-4.4.14/drivers/macintosh/ams/ |
H A D | ams-core.c | 162 ams_info.of_dev = of_platform_device_create(ams_info.of_node, "ams", NULL); ams_sensor_attach() 163 if (!ams_info.of_dev) { ams_sensor_attach() 169 result = device_create_file(&ams_info.of_dev->dev, &dev_attr_current); ams_sensor_attach() 182 device_remove_file(&ams_info.of_dev->dev, &dev_attr_current); ams_sensor_attach() 184 of_device_unregister(ams_info.of_dev); ams_sensor_attach() 222 device_remove_file(&ams_info.of_dev->dev, &dev_attr_current); ams_sensor_detach() 232 of_device_unregister(ams_info.of_dev); ams_sensor_detach()
|
H A D | ams-input.c | 77 input->dev.parent = &ams_info.of_dev->dev; ams_input_enable() 151 return device_create_file(&ams_info.of_dev->dev, &dev_attr_joystick); ams_input_init() 156 device_remove_file(&ams_info.of_dev->dev, &dev_attr_joystick); ams_input_exit()
|
H A D | ams.h | 26 struct platform_device *of_dev; member in struct:ams
|
/linux-4.4.14/arch/powerpc/kernel/ |
H A D | ibmebus.c | 344 struct platform_device *of_dev; ibmebus_bus_device_probe() local 347 of_dev = to_platform_device(dev); ibmebus_bus_device_probe() 352 of_dev_get(of_dev); ibmebus_bus_device_probe() 355 error = drv->probe(of_dev); ibmebus_bus_device_probe() 357 of_dev_put(of_dev); ibmebus_bus_device_probe() 364 struct platform_device *of_dev = to_platform_device(dev); ibmebus_bus_device_remove() local 368 drv->remove(of_dev); ibmebus_bus_device_remove() 374 struct platform_device *of_dev = to_platform_device(dev); ibmebus_bus_device_shutdown() local 378 drv->shutdown(of_dev); ibmebus_bus_device_shutdown() 421 struct platform_device *of_dev = to_platform_device(dev); ibmebus_bus_legacy_suspend() local 426 ret = drv->suspend(of_dev, mesg); ibmebus_bus_legacy_suspend() 432 struct platform_device *of_dev = to_platform_device(dev); ibmebus_bus_legacy_resume() local 437 ret = drv->resume(of_dev); ibmebus_bus_legacy_resume()
|
/linux-4.4.14/drivers/macintosh/ |
H A D | therm_windtunnel.c | 54 struct platform_device *of_dev; member in struct:__anon5699 255 err = device_create_file( &x.of_dev->dev, &dev_attr_cpu_temperature ); setup_hardware() 256 err |= device_create_file( &x.of_dev->dev, &dev_attr_case_temperature ); setup_hardware() 265 device_remove_file( &x.of_dev->dev, &dev_attr_cpu_temperature ); restore_regs() 266 device_remove_file( &x.of_dev->dev, &dev_attr_case_temperature ); restore_regs() 503 x.of_dev = of_platform_device_create(np, "temperature", NULL); g4fan_init() 506 if( !x.of_dev ) { g4fan_init() 520 if( x.of_dev ) g4fan_exit() 521 of_device_unregister( x.of_dev ); g4fan_exit()
|
H A D | smu.c | 76 struct platform_device *of_dev; member in struct:smu_device 637 &smu->of_dev->dev); smu_expose_childs() 646 smu->of_dev = dev; smu_platform_probe() 691 return smu->of_dev; smu_get_ofdev()
|
/linux-4.4.14/drivers/input/serio/ |
H A D | xilinx_ps2.c | 228 * @of_dev: pointer to OF device structure 331 * @of_dev: pointer to OF device structure 337 static int xps2_of_remove(struct platform_device *of_dev) xps2_of_remove() argument 339 struct xps2data *drvdata = platform_get_drvdata(of_dev); xps2_of_remove() 346 if (of_address_to_resource(of_dev->dev.of_node, 0, &r_mem)) xps2_of_remove()
|
H A D | apbps2.c | 197 static int apbps2_of_remove(struct platform_device *of_dev) apbps2_of_remove() argument 199 struct apbps2_priv *priv = platform_get_drvdata(of_dev); apbps2_of_remove()
|
/linux-4.4.14/drivers/net/ethernet/aeroflex/ |
H A D | greth.c | 1567 static int greth_of_remove(struct platform_device *of_dev) greth_of_remove() argument 1569 struct net_device *ndev = platform_get_drvdata(of_dev); greth_of_remove() 1573 dma_free_coherent(&of_dev->dev, 1024, greth->rx_bd_base, greth->rx_bd_base_phys); greth_of_remove() 1575 dma_free_coherent(&of_dev->dev, 1024, greth->tx_bd_base, greth->tx_bd_base_phys); greth_of_remove() 1584 of_iounmap(&of_dev->resource[0], greth->regs, resource_size(&of_dev->resource[0])); greth_of_remove()
|
/linux-4.4.14/drivers/net/ethernet/xilinx/ |
H A D | xilinx_emaclite.c | 1182 * @of_dev: Pointer to OF device structure 1190 static int xemaclite_of_remove(struct platform_device *of_dev) xemaclite_of_remove() argument 1192 struct net_device *ndev = platform_get_drvdata(of_dev); xemaclite_of_remove()
|
Completed in 327 milliseconds