serial: 8250_dw: Convert to devm_ioremap()
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Thu, 11 Apr 2013 12:43:21 +0000 (15:43 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 11 Apr 2013 20:23:23 +0000 (13:23 -0700)
Use resource managed ioremap.

Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_dw.c

index b7c7d6a6cad75c47d95d2f02f0992500ed193976..39b7ae465b5aaef731b670bef466d85af8c273ab 100644 (file)
@@ -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;