]> err.no Git - linux-2.6/commit
[PATCH] RTC driver init adjustment
authorJan Beulich <jbeulich@novell.com>
Wed, 13 Dec 2006 08:35:05 +0000 (00:35 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Wed, 13 Dec 2006 17:05:52 +0000 (09:05 -0800)
commit9cef779ec3643e6c846f86a32d8c44daff16a336
tree0f797b0e90876fe65f6cb6f7e7b8ec0d9dbf3efb
parentf3e92d355e1251fb6d1a15508f2a5448d2354727
[PATCH] RTC driver init adjustment

- conditionalizes procfs code upon CONFIG_PROC_FS (to reduce code size when
  that option is not enabled)

- make initialization no longer fail when the procfs entry can't be
  allocated (namely would initialization always have failed when
  CONFIG_PROC_FS was not set)

- move the formerly file-scope static variable rtc_int_handler_ptr into
  the only function using it, and makes it automatic.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/char/rtc.c