From: Heikki Krogerus Date: Thu, 11 Apr 2013 12:43:21 +0000 (+0300) Subject: serial: 8250_dw: Convert to devm_ioremap() X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=b88d0826ecb949f62597d4733e50e589058c20b4;p=openwrt%2Fstaging%2Fblogic.git serial: 8250_dw: Convert to devm_ioremap() Use resource managed ioremap. Signed-off-by: Heikki Krogerus Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/serial/8250/8250_dw.c b/drivers/tty/serial/8250/8250_dw.c index b7c7d6a6cad7..39b7ae465b5a 100644 --- a/drivers/tty/serial/8250/8250_dw.c +++ b/drivers/tty/serial/8250/8250_dw.c @@ -250,7 +250,8 @@ static int dw8250_probe(struct platform_device *pdev) uart.port.flags = UPF_SHARE_IRQ | UPF_BOOT_AUTOCONF | UPF_FIXED_PORT; uart.port.dev = &pdev->dev; - uart.port.membase = ioremap(regs->start, resource_size(regs)); + uart.port.membase = devm_ioremap(&pdev->dev, regs->start, + resource_size(regs)); if (!uart.port.membase) return -ENOMEM;