Lines Matching defs:device
30 struct platform_device *device = context;
31 struct adv_swbutton *button = dev_get_drvdata(&device->dev);
43 dev_dbg(&device->dev, "Unsupported event [0x%x]\n", event);
47 static int adv_swbutton_probe(struct platform_device *device)
51 acpi_handle handle = ACPI_HANDLE(&device->dev);
55 button = devm_kzalloc(&device->dev, sizeof(*button), GFP_KERNEL);
59 dev_set_drvdata(&device->dev, button);
61 input = devm_input_allocate_device(&device->dev);
71 input->dev.parent = &device->dev;
79 device_init_wakeup(&device->dev, true);
84 device);
86 dev_err(&device->dev, "Error installing notify handler\n");
93 static void adv_swbutton_remove(struct platform_device *device)
95 acpi_handle handle = ACPI_HANDLE(&device->dev);