tty/serial: atmel: remove cache when unnecessary
authorAlexandre Belloni <alexandre.belloni@free-electrons.com>
Tue, 21 Feb 2017 12:03:57 +0000 (13:03 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Mar 2017 02:59:04 +0000 (10:59 +0800)
commit488ae82d973c421229c9f02363e94545086313da
tree5eec127974fbbb645602ac56edc79a86f1b7bf54
parent432f974801e2f3590c95a666ab4546346d1c60a9
tty/serial: atmel: remove cache when unnecessary

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>
drivers/tty/serial/atmel_serial.c