/* Wake up users waiting for IO so they can disconnect from dead device.  */
static void evdev_hangup(struct evdev *evdev)
/* Wake up users waiting for IO so they can disconnect from dead device.  */
static void evdev_hangup(struct evdev *evdev)
{
	struct evdev_client *client;
	spin_lock(&evdev->client_lock);
	list_for_each_entry(client, &evdev->client_list, node)
		kill_fasync(&client->fasync, SIGIO, POLL_HUP);
	spin_unlock(&evdev->client_lock);
	wake_up_interruptible(&evdev->wait);
}