summaryrefslogtreecommitdiff
path: root/drivers/tty/hvc/hvc_dcc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/tty/hvc/hvc_dcc.c')
-rw-r--r--drivers/tty/hvc/hvc_dcc.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/drivers/tty/hvc/hvc_dcc.c b/drivers/tty/hvc/hvc_dcc.c
index 3502a7b..44fbeba 100644
--- a/drivers/tty/hvc/hvc_dcc.c
+++ b/drivers/tty/hvc/hvc_dcc.c
@@ -86,21 +86,6 @@ static int hvc_dcc_get_chars(uint32_t vt, char *buf, int count)
return i;
}
-static bool hvc_dcc_check(void)
-{
- unsigned long time = jiffies + (HZ / 10);
-
- /* Write a test character to check if it is handled */
- __dcc_putchar('\n');
-
- while (time_is_after_jiffies(time)) {
- if (!(__dcc_getstatus() & DCC_STATUS_TX))
- return true;
- }
-
- return false;
-}
-
static const struct hv_ops hvc_dcc_get_put_ops = {
.get_chars = hvc_dcc_get_chars,
.put_chars = hvc_dcc_put_chars,
@@ -108,9 +93,6 @@ static const struct hv_ops hvc_dcc_get_put_ops = {
static int __init hvc_dcc_console_init(void)
{
- if (!hvc_dcc_check())
- return -ENODEV;
-
hvc_instantiate(0, 0, &hvc_dcc_get_put_ops);
return 0;
}
@@ -118,9 +100,6 @@ console_initcall(hvc_dcc_console_init);
static int __init hvc_dcc_init(void)
{
- if (!hvc_dcc_check())
- return -ENODEV;
-
hvc_alloc(0, 0, &hvc_dcc_get_put_ops, 128);
return 0;
}