From: Paul Mundt Date: Fri, 21 Jan 2011 07:00:31 +0000 (+0900) Subject: serial: sh-sci: Use dev_name() for region reservations. X-Git-Tag: v2.6.39-rc1~456^2~17^3~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1020520e41965eb11759a0c40e6ab66297340df6;p=platform%2Fupstream%2Fkernel-adaptation-pc.git serial: sh-sci: Use dev_name() for region reservations. dev_name() matches what the other drivers are doing, so prefer that over the port type. Signed-off-by: Paul Mundt --- diff --git a/drivers/serial/sh-sci.c b/drivers/serial/sh-sci.c index c55cec5..abf144e 100644 --- a/drivers/serial/sh-sci.c +++ b/drivers/serial/sh-sci.c @@ -1646,7 +1646,7 @@ static int sci_request_port(struct uart_port *port) struct resource *res; int ret; - res = request_mem_region(port->mapbase, size, sci_type(port)); + res = request_mem_region(port->mapbase, size, dev_name(port->dev)); if (unlikely(res == NULL)) return -EBUSY;