Searched refs:of_dev (Results 1 - 10 of 10) sorted by relevance
/drivers/macintosh/ams/ |
H A D | ams-core.c | 162 ams_info.of_dev = of_platform_device_create(ams_info.of_node, "ams", NULL); 163 if (!ams_info.of_dev) { 169 result = device_create_file(&ams_info.of_dev->dev, &dev_attr_current); 182 device_remove_file(&ams_info.of_dev->dev, &dev_attr_current); 184 of_device_unregister(ams_info.of_dev); 222 device_remove_file(&ams_info.of_dev->dev, &dev_attr_current); 232 of_device_unregister(ams_info.of_dev);
|
H A D | ams-input.c | 77 input->dev.parent = &ams_info.of_dev->dev; 151 return device_create_file(&ams_info.of_dev->dev, &dev_attr_joystick); 156 device_remove_file(&ams_info.of_dev->dev, &dev_attr_joystick);
|
H A D | ams.h | 26 struct platform_device *of_dev; member in struct:ams
|
/drivers/macintosh/ |
H A D | therm_pm72.c | 150 static struct platform_device * of_dev; variable in typeref:struct:platform_device 1181 err = device_create_file(&of_dev->dev, &dev_attr_cpu0_temperature); 1182 err |= device_create_file(&of_dev->dev, &dev_attr_cpu0_voltage); 1183 err |= device_create_file(&of_dev->dev, &dev_attr_cpu0_current); 1184 err |= device_create_file(&of_dev->dev, &dev_attr_cpu0_exhaust_fan_rpm); 1185 err |= device_create_file(&of_dev->dev, &dev_attr_cpu0_intake_fan_rpm); 1187 err = device_create_file(&of_dev->dev, &dev_attr_cpu1_temperature); 1188 err |= device_create_file(&of_dev->dev, &dev_attr_cpu1_voltage); 1189 err |= device_create_file(&of_dev->dev, &dev_attr_cpu1_current); 1190 err |= device_create_file(&of_dev [all...] |
H A D | therm_windtunnel.c | 54 struct platform_device *of_dev; member in struct:__anon1959 255 err = device_create_file( &x.of_dev->dev, &dev_attr_cpu_temperature ); 256 err |= device_create_file( &x.of_dev->dev, &dev_attr_case_temperature ); 265 device_remove_file( &x.of_dev->dev, &dev_attr_cpu_temperature ); 266 device_remove_file( &x.of_dev->dev, &dev_attr_case_temperature ); 502 x.of_dev = of_platform_device_create(np, "temperature", NULL); 505 if( !x.of_dev ) { 519 if( x.of_dev ) 520 of_device_unregister( x.of_dev );
|
H A D | smu.c | 76 struct platform_device *of_dev; member in struct:smu_device 638 &smu->of_dev->dev); 647 smu->of_dev = dev; 693 return smu->of_dev;
|
/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) argument 339 struct xps2data *drvdata = platform_get_drvdata(of_dev); 346 if (of_address_to_resource(of_dev->dev.of_node, 0, &r_mem))
|
H A D | apbps2.c | 197 static int apbps2_of_remove(struct platform_device *of_dev) argument 199 struct apbps2_priv *priv = platform_get_drvdata(of_dev);
|
/drivers/net/ethernet/aeroflex/ |
H A D | greth.c | 1569 static int greth_of_remove(struct platform_device *of_dev) argument 1571 struct net_device *ndev = platform_get_drvdata(of_dev); 1575 dma_free_coherent(&of_dev->dev, 1024, greth->rx_bd_base, greth->rx_bd_base_phys); 1577 dma_free_coherent(&of_dev->dev, 1024, greth->tx_bd_base, greth->tx_bd_base_phys); 1586 of_iounmap(&of_dev->resource[0], greth->regs, resource_size(&of_dev->resource[0]));
|
/drivers/net/ethernet/xilinx/ |
H A D | xilinx_emaclite.c | 1179 * @of_dev: Pointer to OF device structure 1187 static int xemaclite_of_remove(struct platform_device *of_dev) argument 1189 struct net_device *ndev = platform_get_drvdata(of_dev);
|
Completed in 6549 milliseconds