Lines Matching refs:pf_device
63 static struct platform_device *pf_device; variable
606 if (pf_device) in acpi_add()
613 pf_device = platform_device_register_simple(PLATFORM_NAME, in acpi_add()
616 if (IS_ERR(pf_device)) { in acpi_add()
617 ret = PTR_ERR(pf_device); in acpi_add()
618 pf_device = NULL; in acpi_add()
623 ret = sysfs_create_group(&pf_device->dev.kobj, &dev_attribute_group); in acpi_add()
628 led_classdev_register(&pf_device->dev, &kbd_backlight); in acpi_add()
629 led_classdev_register(&pf_device->dev, &tpad_led); in acpi_add()
636 platform_device_unregister(pf_device); in acpi_add()
644 sysfs_remove_group(&pf_device->dev.kobj, &dev_attribute_group); in acpi_remove()
650 platform_device_unregister(pf_device); in acpi_remove()
651 pf_device = NULL; in acpi_remove()