From: Dave Airlie Date: Thu, 6 Jan 2011 23:57:41 +0000 (+1000) Subject: vt: fix issue when fbcon wants to takeover a second time. X-Git-Tag: v2.6.37.2~58 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=385979a2a621ab3c0d740d552ad243f82697cd48;p=pandora-kernel.git vt: fix issue when fbcon wants to takeover a second time. commit c55c63c6539499379ab4a7e8a5c0f857351fb946 upstream. With framebuffer handover and multiple GPUs, we get into a position where the fbcon unbinds the vesafb framebuffer for GPU 1, but we still have a radeon framebuffer bound from GPU 0, so we don't unregister the console driver. Then when we tried to bind the new radeon framebuffer for GPU1 we never get to the bind call as we fail due to the console being registered already. This changes the return value to -EBUSY when the driver is already registered and continues to bind for -EBUSY. Signed-off-by: Dave Airlie Cc: Alan Cox Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed