Blackfin arch: fix bug - some serial header files set RTS to an input when they shoul...
authorSonic Zhang <sonic.zhang@analog.com>
Mon, 13 Oct 2008 09:42:12 +0000 (17:42 +0800)
committerBryan Wu <cooloney@kernel.org>
Mon, 13 Oct 2008 09:42:12 +0000 (17:42 +0800)
Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
arch/blackfin/mach-bf533/include/mach/bfin_serial_5xx.h
arch/blackfin/mach-bf561/include/mach/bfin_serial_5xx.h

index 34ab0e4e42423a29ff910f4f8fed6a8f07b4d5a6..f3d9e495230c04439357b1499874c918092a817e 100644 (file)
@@ -158,7 +158,7 @@ static void bfin_serial_hw_init(struct bfin_serial_port *uart)
        }
        if (uart->rts_pin >= 0) {
                gpio_request(uart->rts_pin, DRIVER_NAME);
-               gpio_direction_input(uart->rts_pin, 0);
+               gpio_direction_output(uart->rts_pin, 0);
        }
 #endif
 }
index f5327264357cb2dd0a96d26eb4a734fc5bd3fddc..043bfcf26c52a2250c4399a484904e0e0906e9af 100644 (file)
@@ -158,7 +158,7 @@ static void bfin_serial_hw_init(struct bfin_serial_port *uart)
        }
        if (uart->rts_pin >= 0) {
                gpio_request(uart->rts_pin, DRIVER_NAME);
-               gpio_direction_input(uart->rts_pin, 0);
+               gpio_direction_output(uart->rts_pin, 0);
        }
 #endif
 }