Skip to content

Commit

Permalink
serial: sh-sci: Use dev_name() for region reservations.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Paul Mundt committed Jan 21, 2011
1 parent f6e9495 commit 1020520
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/serial/sh-sci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 1020520

Please sign in to comment.