summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2013-01-06 19:36:59 +0400
committerAlejandro Mery <amery@geeks.cl>2013-01-14 14:35:51 +0400
commit8bc993052e273c1002550d76d043613c661aaee4 (patch)
tree6b6df9545613908a1b33d6c0e0d6bd15d4846092
parentda7e20bdb2c513564d8dfcdd905d8aec93cb8113 (diff)
downloadlinux-sunxi-8bc993052e273c1002550d76d043613c661aaee4.tar.xz
sunxi-serial: Get rid of useless sw_serial_get_config
All info gathered there is never uses, so while we're cleaning up the sunxi-serial code lets nuke this. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
-rwxr-xr-xdrivers/tty/serial/8250_sunxi.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/drivers/tty/serial/8250_sunxi.c b/drivers/tty/serial/8250_sunxi.c
index ee620ce3fdb5..e53a080bda78 100755
--- a/drivers/tty/serial/8250_sunxi.c
+++ b/drivers/tty/serial/8250_sunxi.c
@@ -45,7 +45,6 @@
struct sw_serial_port {
int port_no;
int line;
- int pin_num;
u32 pio_hdle;
struct clk *clk;
u32 sclk;
@@ -128,24 +127,6 @@ static int sw_serial_put_resource(struct sw_serial_port *sport)
return 0;
}
-static int sw_serial_get_config(struct sw_serial_port *sport, u32 uart_id)
-{
- char uart_para[16] = {0};
- int ret;
-
- sprintf(uart_para, "uart_para%d", uart_id);
- ret = script_parser_fetch(uart_para, "uart_port", &sport->port_no, sizeof(int));
- if (ret)
- return -1;
- if (sport->port_no != uart_id)
- return -1;
- ret = script_parser_fetch(uart_para, "uart_type", &sport->pin_num, sizeof(int));
- if (ret)
- return -1;
-
- return 0;
-}
-
static void
sw_serial_pm(struct uart_port *port, unsigned int state,
unsigned int oldstate)
@@ -171,12 +152,6 @@ sw_serial_probe(struct platform_device *dev)
sport->port_no = dev->id;
sport->pdev = dev;
- ret = sw_serial_get_config(sport, dev->id);
- if (ret) {
- printk(KERN_ERR "Failed to get config information\n");
- goto free_dev;
- }
-
ret = sw_serial_get_resource(sport);
if (ret) {
printk(KERN_ERR "Failed to get resource\n");