Commit cbf98efd authored by Russell King's avatar Russell King

[SERIAL] Fix uart_type compilation error when CONFIG_PROC_FS=n

parent 52a22f80
...@@ -1604,8 +1604,6 @@ static int uart_open(struct tty_struct *tty, struct file *filp) ...@@ -1604,8 +1604,6 @@ static int uart_open(struct tty_struct *tty, struct file *filp)
return retval; return retval;
} }
#ifdef CONFIG_PROC_FS
static const char *uart_type(struct uart_port *port) static const char *uart_type(struct uart_port *port)
{ {
const char *str = NULL; const char *str = NULL;
...@@ -1619,6 +1617,8 @@ static const char *uart_type(struct uart_port *port) ...@@ -1619,6 +1617,8 @@ static const char *uart_type(struct uart_port *port)
return str; return str;
} }
#ifdef CONFIG_PROC_FS
static int uart_line_info(char *buf, struct uart_driver *drv, int i) static int uart_line_info(char *buf, struct uart_driver *drv, int i)
{ {
struct uart_state *state = drv->state + i; struct uart_state *state = drv->state + i;
......
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