Commit 12a133e8 authored by Hirokazu Takata's avatar Hirokazu Takata Committed by Linus Torvalds

[PATCH] m32r: update SIO driver to use module_param()

Here is a patch for M32R SIO driver, which replaces deprecated 
MODULE_PARAM() with modern module_param().

	* drivers/serial/m32r_sio.c:
	- Replace MODULE_PARAM() with module_param().
	- Fix a typo: UARRT_RSA_BASE --> UART_RSA_BASE.
Signed-off-by: default avatarHirokazu Takata <takata@linux-m32r.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 74ad0fc6
...@@ -848,7 +848,7 @@ m32r_sio_request_std_resource(struct uart_sio_port *up, struct resource **res) ...@@ -848,7 +848,7 @@ m32r_sio_request_std_resource(struct uart_sio_port *up, struct resource **res)
*res = request_mem_region(up->port.mapbase, size, "serial"); *res = request_mem_region(up->port.mapbase, size, "serial");
#else #else
start = up->port.mapbase; start = up->port.mapbase;
start += UARRT_RSA_BASE << up->port.regshift; start += UART_RSA_BASE << up->port.regshift;
*res = request_mem_region(start, size, "serial"); *res = request_mem_region(start, size, "serial");
#endif #endif
if (!*res) if (!*res)
...@@ -1333,7 +1333,7 @@ static int __init m32r_sio_init(void) ...@@ -1333,7 +1333,7 @@ static int __init m32r_sio_init(void)
{ {
int ret, i; int ret, i;
printk(KERN_INFO "Serial: M32R SIO driver $Revision: 1.6 $ " printk(KERN_INFO "Serial: M32R SIO driver $Revision: 1.9 $ "
"IRQ sharing %sabled\n", share_irqs_sio ? "en" : "dis"); "IRQ sharing %sabled\n", share_irqs_sio ? "en" : "dis");
for (i = 0; i < NR_IRQS; i++) for (i = 0; i < NR_IRQS; i++)
...@@ -1366,8 +1366,8 @@ EXPORT_SYMBOL(m32r_sio_suspend_port); ...@@ -1366,8 +1366,8 @@ EXPORT_SYMBOL(m32r_sio_suspend_port);
EXPORT_SYMBOL(m32r_sio_resume_port); EXPORT_SYMBOL(m32r_sio_resume_port);
MODULE_LICENSE("GPL"); MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("Generic M32R SIO serial driver $Revision: 1.6 $"); MODULE_DESCRIPTION("Generic M32R SIO serial driver $Revision: 1.9 $");
MODULE_PARM(share_irqs_sio, "i"); module_param(share_irqs_sio, bool, 0400);
MODULE_PARM_DESC(share_irqs_sio, "Share IRQs with other non-M32R SIO devices" MODULE_PARM_DESC(share_irqs_sio, "Share IRQs with other non-M32R SIO devices"
" (unsafe)"); " (unsafe)");
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment