Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

serial: arc_uart: Fix module alias

Platform drivers use "platform:" prefix in module alias.
Also use DRIVER_NAME in MODULE_ALIAS to make module autoloading work.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Vineet Gupta <vgupta@synopsys.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Axel Lin and committed by
Greg Kroah-Hartman
d5a12ea7 1d9e689c

+1 -1
+1 -1
drivers/tty/serial/arc_uart.c
··· 773 773 module_exit(arc_serial_exit); 774 774 775 775 MODULE_LICENSE("GPL"); 776 - MODULE_ALIAS("plat-arcfpga/uart"); 776 + MODULE_ALIAS("platform:" DRIVER_NAME); 777 777 MODULE_AUTHOR("Vineet Gupta"); 778 778 MODULE_DESCRIPTION("ARC(Synopsys) On-Chip(fpga) serial driver");