diff options
Diffstat (limited to 'drivers/video/console/newport_con.c')
-rw-r--r-- | drivers/video/console/newport_con.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/video/console/newport_con.c b/drivers/video/console/newport_con.c index b05afd03729e..a6ab9299813c 100644 --- a/drivers/video/console/newport_con.c +++ b/drivers/video/console/newport_con.c | |||
@@ -297,7 +297,7 @@ static void newport_exit(void) | |||
297 | newport_set_def_font(i, NULL); | 297 | newport_set_def_font(i, NULL); |
298 | } | 298 | } |
299 | 299 | ||
300 | /* Can't be __init, take_over_console may call it later */ | 300 | /* Can't be __init, do_take_over_console may call it later */ |
301 | static const char *newport_startup(void) | 301 | static const char *newport_startup(void) |
302 | { | 302 | { |
303 | int i; | 303 | int i; |
@@ -746,6 +746,7 @@ static int newport_probe(struct gio_device *dev, | |||
746 | const struct gio_device_id *id) | 746 | const struct gio_device_id *id) |
747 | { | 747 | { |
748 | unsigned long newport_addr; | 748 | unsigned long newport_addr; |
749 | int err; | ||
749 | 750 | ||
750 | if (!dev->resource.start) | 751 | if (!dev->resource.start) |
751 | return -EINVAL; | 752 | return -EINVAL; |
@@ -759,8 +760,10 @@ static int newport_probe(struct gio_device *dev, | |||
759 | 760 | ||
760 | npregs = (struct newport_regs *)/* ioremap cannot fail */ | 761 | npregs = (struct newport_regs *)/* ioremap cannot fail */ |
761 | ioremap(newport_addr, sizeof(struct newport_regs)); | 762 | ioremap(newport_addr, sizeof(struct newport_regs)); |
762 | 763 | console_lock(); | |
763 | return take_over_console(&newport_con, 0, MAX_NR_CONSOLES - 1, 1); | 764 | err = do_take_over_console(&newport_con, 0, MAX_NR_CONSOLES - 1, 1); |
765 | console_unlock(); | ||
766 | return err; | ||
764 | } | 767 | } |
765 | 768 | ||
766 | static void newport_remove(struct gio_device *dev) | 769 | static void newport_remove(struct gio_device *dev) |