Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 488ae82d authored by Alexandre Belloni's avatar Alexandre Belloni Committed by Greg Kroah-Hartman
Browse files

tty/serial: atmel: remove cache when unnecessary



struct cache is only used in suspend/resume. Exclude it when PM is not
selected.

Suggested-by: default avatarRichard Genoud <richard.genoud@gmail.com>
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: default avatarRichard Genoud <richard.genoud@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 432f9748
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -176,6 +176,7 @@ struct atmel_uart_port {
	unsigned int		pending_status;
	spinlock_t		lock_suspended;

#ifdef CONFIG_PM
	struct {
		u32		cr;
		u32		mr;
@@ -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);