Lines Matching refs:sony_pf_device
587 static struct platform_device *sony_pf_device; variable
601 sony_pf_device = platform_device_alloc("sony-laptop", -1); in sony_pf_add()
602 if (!sony_pf_device) { in sony_pf_add()
607 ret = platform_device_add(sony_pf_device); in sony_pf_add()
614 platform_device_put(sony_pf_device); in sony_pf_add()
615 sony_pf_device = NULL; in sony_pf_add()
629 platform_device_unregister(sony_pf_device); in sony_pf_remove()
3198 result = sony_nc_handles_setup(sony_pf_device); in sony_nc_add()
3200 sony_nc_function_setup(device, sony_pf_device); in sony_nc_add()
3236 device_create_file(&sony_pf_device->dev, in sony_nc_add()
3248 device_remove_file(&sony_pf_device->dev, &item->devattr); in sony_nc_add()
3251 sony_nc_function_cleanup(sony_pf_device); in sony_nc_add()
3252 sony_nc_handles_cleanup(sony_pf_device); in sony_nc_add()
3274 device_remove_file(&sony_pf_device->dev, &item->devattr); in sony_nc_remove()
3277 sony_nc_function_cleanup(sony_pf_device); in sony_nc_remove()
3278 sony_nc_handles_cleanup(sony_pf_device); in sony_nc_remove()
4657 sysfs_remove_group(&sony_pf_device->dev.kobj, &spic_attribute_group); in sony_pic_remove()
4776 result = sysfs_create_group(&sony_pf_device->dev.kobj, &spic_attribute_group); in sony_pic_add()