Lines Matching defs:device
23 u32 irq; /* acpi device irq */
26 unsigned long misc_opened; /* whether the device is open */
28 struct device *dev; /* acpi device */
95 clear_bit(0, &smo8800->misc_opened); /* release the device */
106 static int smo8800_probe(struct platform_device *device)
111 smo8800 = devm_kzalloc(&device->dev, sizeof(*smo8800), GFP_KERNEL);
113 dev_err(&device->dev, "failed to allocate device data\n");
117 smo8800->dev = &device->dev;
126 dev_err(&device->dev, "failed to register misc dev: %d\n", err);
130 platform_set_drvdata(device, smo8800);
132 err = platform_get_irq(device, 0);
142 dev_err(&device->dev,
148 dev_dbg(&device->dev, "device /dev/freefall registered with IRQ %d\n",
157 static void smo8800_remove(struct platform_device *device)
159 struct smo8800_device *smo8800 = platform_get_drvdata(device);
163 dev_dbg(&device->dev, "device /dev/freefall unregistered\n");