static long pcf8563_unlocked_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
{
	int ret;

	mutex_lock(&pcf8563_mutex);
	ret = pcf8563_ioctl(filp, cmd, arg);
	mutex_unlock(&pcf8563_mutex);

	return ret;
}
Esempio n. 2
0
static long pcf8563_unlocked_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
{
	int ret;

	lock_kernel();
	return pcf8563_ioctl(filp, cmd, arg);
	unlock_kernel();

	return ret;
}