diff options
author | Paul Mundt <lethal@linux-sh.org> | 2011-01-21 02:00:31 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2011-01-21 02:00:31 -0500 |
commit | 1020520e41965eb11759a0c40e6ab66297340df6 (patch) | |
tree | f1088a8b363c25886e7cf5a8525fc96fbe985bf3 /drivers/serial/sh-sci.c | |
parent | f6e9495d68b91138afbf929c222a09f5d12b29fa (diff) |
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 <lethal@linux-sh.org>
Diffstat (limited to 'drivers/serial/sh-sci.c')
-rw-r--r-- | drivers/serial/sh-sci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/serial/sh-sci.c b/drivers/serial/sh-sci.c index c55cec5ba992..abf144eed072 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) | |||
1646 | struct resource *res; | 1646 | struct resource *res; |
1647 | int ret; | 1647 | int ret; |
1648 | 1648 | ||
1649 | res = request_mem_region(port->mapbase, size, sci_type(port)); | 1649 | res = request_mem_region(port->mapbase, size, dev_name(port->dev)); |
1650 | if (unlikely(res == NULL)) | 1650 | if (unlikely(res == NULL)) |
1651 | return -EBUSY; | 1651 | return -EBUSY; |
1652 | 1652 | ||