]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/tty/serial: delete unused MODULE_DEVICE_TABLE from atmel_serial.c
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Thu, 17 Dec 2015 15:05:46 +0000 (10:05 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 9 Jan 2016 05:12:19 +0000 (21:12 -0800)
commit3ea430d41ca05a2c762c145f36936da488bbc430
tree088c813ee74c4212542a689ade6652ad4151388b
parentd137f351031b05020614e45e2a57b6241ed2e990
drivers/tty/serial: delete unused MODULE_DEVICE_TABLE from atmel_serial.c

In commit 7cefdc5b53d48c7e4df8fe95825f873dce30d192 ("drivers/tty/serial:
make serial/atmel_serial.c explicitly non-modular") we removed the code
relating to modular support since it currently only supports built in.

However, when redoing my build coverage for mips allmodconfig, which
sets CONFIG_OF, I noticed a remaining line that needs to be removed,
else we will get a build failure for an undefined module macro.

Unfortunately this didn't appear for any of the other arch I tested
more frequently, such as ARM.

Since MODULE_DEVICE_TABLE is a no-op for non-modular code, we can just
remove the offending line.

Fixes: 7cefdc5b53d4 ("drivers/tty/serial: make serial/atmel_serial.c explicitly non-modular")
Cc: Nicolas Ferre <nicolas.ferre@atmel.com>
Cc: Jiri Slaby <jslaby@suse.com>
Reported-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Acked-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/atmel_serial.c