patch-2.4.0-test2 linux/arch/mips64/sgi-ip27/ip27-rtc.c

Next file: linux/arch/ppc/8260_io/enet.c
Previous file: linux/arch/mips64/kernel/syscall.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test1/linux/arch/mips64/sgi-ip27/ip27-rtc.c linux/arch/mips64/sgi-ip27/ip27-rtc.c
@@ -168,8 +168,6 @@
 	if(rtc_status & RTC_IS_OPEN)
 		return -EBUSY;
 
-	MOD_INC_USE_COUNT;
-
 	rtc_status |= RTC_IS_OPEN;
 	return 0;
 }
@@ -181,8 +179,6 @@
 	 * in use, and clear the data.
 	 */
 
-	MOD_DEC_USE_COUNT;
-
 	rtc_status &= ~RTC_IS_OPEN;
 	return 0;
 }
@@ -192,6 +188,7 @@
  */
 
 static struct file_operations rtc_fops = {
+	owner:		THIS_MODULE,
 	ioctl:		rtc_ioctl,
 	open:		rtc_open,
 	release:	rtc_release,

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)