mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-30 08:02:30 +00:00
tty: serial: uartlite: Fix sparse and checkpatch warnings
Clean coding style and sparse warnings. Signed-off-by: Michal Simek <michal.simek@xilinx.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
11c62d4f1d
commit
3240b48d49
1 changed files with 4 additions and 4 deletions
|
@ -19,7 +19,7 @@
|
|||
#include <linux/delay.h>
|
||||
#include <linux/interrupt.h>
|
||||
#include <linux/init.h>
|
||||
#include <asm/io.h>
|
||||
#include <linux/io.h>
|
||||
#include <linux/of.h>
|
||||
#include <linux/of_address.h>
|
||||
#include <linux/of_device.h>
|
||||
|
@ -615,7 +615,7 @@ static struct platform_driver ulite_platform_driver = {
|
|||
* Module setup/teardown
|
||||
*/
|
||||
|
||||
int __init ulite_init(void)
|
||||
static int __init ulite_init(void)
|
||||
{
|
||||
int ret;
|
||||
|
||||
|
@ -634,11 +634,11 @@ int __init ulite_init(void)
|
|||
err_plat:
|
||||
uart_unregister_driver(&ulite_uart_driver);
|
||||
err_uart:
|
||||
printk(KERN_ERR "registering uartlite driver failed: err=%i", ret);
|
||||
pr_err("registering uartlite driver failed: err=%i", ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
void __exit ulite_exit(void)
|
||||
static void __exit ulite_exit(void)
|
||||
{
|
||||
platform_driver_unregister(&ulite_platform_driver);
|
||||
uart_unregister_driver(&ulite_uart_driver);
|
||||
|
|
Loading…
Reference in a new issue