patch-2.1.31 linux/drivers/char/rtc.c

Next file: linux/drivers/char/selection.c
Previous file: linux/drivers/char/psaux.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.30/linux/drivers/char/rtc.c linux/drivers/char/rtc.c
@@ -462,7 +462,7 @@
 	return 0;
 }
 
-static void rtc_release(struct inode *inode, struct file *file)
+static int rtc_release(struct inode *inode, struct file *file)
 {
 
 	/*
@@ -490,6 +490,7 @@
 
 	rtc_irq_data = 0;
 	rtc_status &= ~RTC_IS_OPEN;
+	return 0;
 }
 
 static unsigned int rtc_poll(struct file *file, poll_table *wait)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov