/* The function allocates memory for a polled device and also for an input device associated with this polled device.  */
struct input_polled_dev* input_allocate_polled_device(void)
/* The function allocates memory for a polled device and also for an input device associated with this polled device.  */
struct input_polled_dev* input_allocate_polled_device(void)
{
	struct input_polled_dev *dev;
	dev = kzalloc(sizeof(struct input_polled_dev), GFP_KERNEL);
	if (!dev)
		return NULL;
	dev->input = input_allocate_device();
	if (!dev->input) {
		kfree(dev);
		return NULL;
	}
	return dev;
}