提交 1020520e 编写于 作者: P Paul Mundt

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: NPaul Mundt <lethal@linux-sh.org>
上级 f6e9495d
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册