diff options
author | Michal Simek <michal.simek@xilinx.com> | 2013-02-11 13:04:33 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-02-13 11:38:45 -0500 |
commit | 3240b48d492b368339a8a5cb3a4dc5b35432ef43 (patch) | |
tree | 695bba2a244ceb0f747738c2cfbc816b08e0509a /drivers/tty | |
parent | 11c62d4f1d8583dd6305824d704f33301da4e93a (diff) |
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>
Diffstat (limited to 'drivers/tty')
-rw-r--r-- | drivers/tty/serial/uartlite.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/tty/serial/uartlite.c b/drivers/tty/serial/uartlite.c index 5486505e87c7..f3b09ee767ff 100644 --- a/drivers/tty/serial/uartlite.c +++ b/drivers/tty/serial/uartlite.c | |||
@@ -19,7 +19,7 @@ | |||
19 | #include <linux/delay.h> | 19 | #include <linux/delay.h> |
20 | #include <linux/interrupt.h> | 20 | #include <linux/interrupt.h> |
21 | #include <linux/init.h> | 21 | #include <linux/init.h> |
22 | #include <asm/io.h> | 22 | #include <linux/io.h> |
23 | #include <linux/of.h> | 23 | #include <linux/of.h> |
24 | #include <linux/of_address.h> | 24 | #include <linux/of_address.h> |
25 | #include <linux/of_device.h> | 25 | #include <linux/of_device.h> |
@@ -615,7 +615,7 @@ static struct platform_driver ulite_platform_driver = { | |||
615 | * Module setup/teardown | 615 | * Module setup/teardown |
616 | */ | 616 | */ |
617 | 617 | ||
618 | int __init ulite_init(void) | 618 | static int __init ulite_init(void) |
619 | { | 619 | { |
620 | int ret; | 620 | int ret; |
621 | 621 | ||
@@ -634,11 +634,11 @@ int __init ulite_init(void) | |||
634 | err_plat: | 634 | err_plat: |
635 | uart_unregister_driver(&ulite_uart_driver); | 635 | uart_unregister_driver(&ulite_uart_driver); |
636 | err_uart: | 636 | err_uart: |
637 | printk(KERN_ERR "registering uartlite driver failed: err=%i", ret); | 637 | pr_err("registering uartlite driver failed: err=%i", ret); |
638 | return ret; | 638 | return ret; |
639 | } | 639 | } |
640 | 640 | ||
641 | void __exit ulite_exit(void) | 641 | static void __exit ulite_exit(void) |
642 | { | 642 | { |
643 | platform_driver_unregister(&ulite_platform_driver); | 643 | platform_driver_unregister(&ulite_platform_driver); |
644 | uart_unregister_driver(&ulite_uart_driver); | 644 | uart_unregister_driver(&ulite_uart_driver); |