drivers: char: mem: Simplify DEVPORT configuration
authorRob Ward <robert.ward114@googlemail.com>
Sun, 7 Dec 2014 15:40:35 +0000 (15:40 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 12 Jan 2015 13:04:11 +0000 (05:04 -0800)
commit3a4bc2fb80fb1fc943b640aae87dc078ba2aad78
treeb1e8015a899a8d5179f3e8aeaa446dad8c15094c
parenta8c912522b547b3512cd25ccb8d507cd75264c84
drivers: char: mem: Simplify DEVPORT configuration

Simplify the use of CONFIG_DEVPORT by making the port_fops
so that it includes __maybe_unused.

This enabled the multiple #ifdef's used for this structure
to be removed and brings it in line with the use of CONFIG_DEVMEM

This change should introduce no functional changes.

Signed-off-by: Rob Ward <robert.ward114@googlemail.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/mem.c