--- kernel/drivers/char/sa1100-rtc.c	Sat Feb 16 18:29:17 2002
+++ kernel-h3600/drivers/char/sa1100-rtc.c	Wed Jul 10 19:33:12 2002
@@ -14,6 +14,9 @@
  *	as published by the Free Software Foundation; either version
  *	2 of the License, or (at your option) any later version.
  *
+ *	1.01	2002-07-09	Nils Faerber <nils@kernelconcepts.de>
+ *	- fixed rtc_poll() so that select() now works
+ *
  *	1.00	2001-06-08	Nicolas Pitre <nico@cam.org>
  *	- added periodic timer capability using OSMR1
  *	- flag compatibility with other RTC chips
@@ -23,10 +26,10 @@
  *	0.03	2001-03-07	CIH <cih@coventive.com>
  *	- Modify the bug setups RTC clock.
  *
- *	0.02	2001-02-27	Nils Faerber <nils@@kernelconcepts.de>
+ *	0.02	2001-02-27	Nils Faerber <nils@kernelconcepts.de>
  *	- removed mktime(), added alarm irq clear
  *
- *	0.01	2000-10-01	Nils Faerber <nils@@kernelconcepts.de>
+ *	0.01	2000-10-01	Nils Faerber <nils@kernelconcepts.de>
  *	- initial release
  */
 
@@ -42,7 +45,7 @@
 #include <asm/irq.h>
 #include <linux/rtc.h>
 
-#define	DRIVER_VERSION		"1.00"
+#define	DRIVER_VERSION		"1.01"
 
 #define TIMER_FREQ		3686400
 
@@ -189,7 +192,7 @@
 static unsigned int rtc_poll(struct file *file, poll_table *wait)
 {
 	poll_wait (file, &rtc_wait, wait);
-	return (rtc_irq_data) ? 0 : POLLIN | POLLRDNORM;
+	return (rtc_irq_data) ? POLLIN | POLLRDNORM : 0;
 }
 
 static loff_t rtc_llseek(struct file *file, loff_t offset, int origin)
