Skip to contentSkip to conversation

fbcon: convert last fbcon_takeover call to do_fbcon_takeover

PATCH In review Wang YanQing 1 participant 1 message May 8, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/9 fbcon: convert last fbcon_takeover call to do_fbcon_takeover

After commit 054430e773c9a1e26f38e30156eff02dedfffc17 (fbcon: fix locking harder), there is only one place use do_fbcon_takeover now, this patch
convert it to do_fbcon_takeover too, then we can delete fbcon_takeover whos function can be achieved with do_fbcon_takeover easily to reduce code size and duplication.

---
 drivers/video/console/fbcon.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/video/console/fbcon.c +2 -1
index 3cd6759..1660644 100644
@@ -3541,8 +3541,9 @@ static void fbcon_start(void)
 			}
 		}
 
+		do_fbcon_takeover(0);
 		console_unlock();
-		fbcon_takeover(0);
+
 	}
 }
 
Signature · 1 line
1.7.12.4.dirty