usb: ehci-platform: support no relinquishing port quirk
[firefly-linux-kernel-4.4.55.git] / kernel / panic.c
index f07bfc9fe613b598fa88c681696bbc8838e1cd3b..223564d3e1f8b61b9a1b8396961cd93dd426a6d7 100644 (file)
@@ -160,8 +160,7 @@ void panic(const char *fmt, ...)
         * panic() is not being callled from OOPS.
         */
        debug_locks_off();
-       console_trylock();
-       console_unlock();
+       console_flush_on_panic();
 
        if (!panic_blink)
                panic_blink = no_blink;