From: Clemens Ladisch Date: Wed, 4 Nov 2009 08:42:52 +0000 (+0100) Subject: drm/fb: fix FBIOGET/PUT_VSCREENINFO pixel clock handling X-Git-Tag: v2.6.32~51^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5349ef3127c77075ff70b2014f17ae0fbcaaf199;p=pandora-kernel.git drm/fb: fix FBIOGET/PUT_VSCREENINFO pixel clock handling When the framebuffer driver does not publish detailed timing information for the current video mode, the correct value for the pixclock field is zero, not -1. Since pixclock is actually unsigned, the value -1 would be interpreted as 4294967295 picoseconds (i.e., about 4 milliseconds) by register_framebuffer() and userspace programs. This patch allows X.org's fbdev driver to work. Signed-off-by: Clemens Ladisch Tested-by: Paulius Zaleckas Cc: stable@kernel.org Signed-off-by: Dave Airlie --- Reading git-diff-tree failed