]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] genrtc: fix read on 64-bit platforms
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>
Mon, 1 May 2006 19:16:17 +0000 (12:16 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 2 May 2006 01:17:47 +0000 (18:17 -0700)
commitf3537ea7b9c2f10397a8b68cd006981d7c615431
tree4aedb112b5e39c09238f533804fc35996c58eeb0
parent3418ff76119da52f808eb496191d1fd380f53f3d
[PATCH] genrtc: fix read on 64-bit platforms

Fix genrtc's read() routine for 64-bit platforms.  Current gen_rtc_read()
stores 64bit integer and returns 8 even if an user tried to read a 32bit
integer.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Cc: Alessandro Zummo <a.zummo@towertech.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/char/genrtc.c