*** smartcam.c	2009-07-08 19:28:55.000000000 +0300
--- ../../smartcam-1.4.0-uusi/driver_src/smartcam.c	2009-08-02 08:38:08.000000000 +0300
***************
*** 454,464 ****
  	File operations for the device
     ------------------------------------------------------------------*/
  
! static int smartcam_open(struct inode *inode, struct file *file)
  {
! 	int minor = 0;
! 	minor = iminor(inode);
! 	SCAM_MSG("(%s) %s called (minor=%d)\n", current->comm, __FUNCTION__, minor);
  	return 0;
  }
  
--- 454,462 ----
  	File operations for the device
     ------------------------------------------------------------------*/
  
! static int smartcam_open(struct file *file)
  {
! 	SCAM_MSG("(%s) %s called \n", current->comm, __FUNCTION__);
  	return 0;
  }
  
***************
*** 538,544 ****
  {
  	int mask = (POLLOUT | POLLWRNORM);	/* writable */
  	if (last_read_frame != frame_sequence)
! 	    mask |= (POLLIN | POLLRDNORM)	/* readable */
  
  	SCAM_MSG("(%s) %s called\n", current->comm, __FUNCTION__);
  
--- 536,542 ----
  {
  	int mask = (POLLOUT | POLLWRNORM);	/* writable */
  	if (last_read_frame != frame_sequence)
! 	    mask |= (POLLIN | POLLRDNORM);	/* readable */
  
  	SCAM_MSG("(%s) %s called\n", current->comm, __FUNCTION__);
  
***************
*** 547,559 ****
  	return mask;
  }
  
! static int smartcam_release(struct inode *inode, struct file *file)
  {
  	SCAM_MSG("(%s) %s called\n", current->comm, __FUNCTION__);
  	return 0;
  }
  
! static const struct file_operations smartcam_fops = {
  	.owner		= THIS_MODULE,
  	.open           = smartcam_open,
  	.release        = smartcam_release,
--- 545,557 ----
  	return mask;
  }
  
! static int smartcam_release(struct file *file)
  {
  	SCAM_MSG("(%s) %s called\n", current->comm, __FUNCTION__);
  	return 0;
  }
  
! static const struct v4l2_file_operations smartcam_fops = {
  	.owner		= THIS_MODULE,
  	.open           = smartcam_open,
  	.release        = smartcam_release,
***************
*** 562,568 ****
  	.poll		= smartcam_poll,
  	.ioctl          = video_ioctl2, /* V4L2 ioctl handler */
  	.mmap		= smartcam_mmap,
- 	.llseek         = no_llseek,
  };
  
  static const struct v4l2_ioctl_ops smartcam_ioctl_ops = {
--- 560,565 ----

