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

Simplify the use of CONFIG_DEVKMEM by making the kmem_fops
so that it is __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