Skip to content

Commit

Permalink
tty/serial: atmel: remove cache when unnecessary
Browse files Browse the repository at this point in the history
struct cache is only used in suspend/resume. Exclude it when PM is not
selected.

Suggested-by: Richard Genoud <richard.genoud@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Richard Genoud <richard.genoud@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Alexandre Belloni authored and Greg Kroah-Hartman committed Mar 14, 2017
1 parent 432f974 commit 488ae82
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/tty/serial/atmel_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ struct atmel_uart_port {
unsigned int pending_status;
spinlock_t lock_suspended;

#ifdef CONFIG_PM
struct {
u32 cr;
u32 mr;
Expand All @@ -186,6 +187,7 @@ struct atmel_uart_port {
u32 fmr;
u32 fimr;
} cache;
#endif

int (*prepare_rx)(struct uart_port *port);
int (*prepare_tx)(struct uart_port *port);
Expand Down

0 comments on commit 488ae82

Please sign in to comment.