Commit b9f5a18a authored by Gabriel Somlo's avatar Gabriel Somlo Committed by Greg Kroah-Hartman
parent 7378beac
......@@ -397,12 +397,10 @@ static int __init liteuart_init(void)
return res;
res = platform_driver_register(&liteuart_platform_driver);
if (res) {
if (res)
uart_unregister_driver(&liteuart_driver);
return res;
}
return 0;
return res;
}
static void __exit liteuart_exit(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment