aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/8250
diff options
context:
space:
mode:
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>2013-04-11 08:43:21 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-04-11 16:23:23 -0400
commitb88d0826ecb949f62597d4733e50e589058c20b4 (patch)
tree9a5ad2067af4dd7f5d94b8e7dd7315ca7312bb58 /drivers/tty/serial/8250
parent2920adb6dfeded0b835a809a1a2c5772d97e5965 (diff)
serial: 8250_dw: Convert to devm_ioremap()
Use resource managed ioremap. Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/8250')
-rw-r--r--drivers/tty/serial/8250/8250_dw.c3
1 files changed, 2 insertions, 1 deletions
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)
250 uart.port.flags = UPF_SHARE_IRQ | UPF_BOOT_AUTOCONF | UPF_FIXED_PORT; 250 uart.port.flags = UPF_SHARE_IRQ | UPF_BOOT_AUTOCONF | UPF_FIXED_PORT;
251 uart.port.dev = &pdev->dev; 251 uart.port.dev = &pdev->dev;
252 252
253 uart.port.membase = ioremap(regs->start, resource_size(regs)); 253 uart.port.membase = devm_ioremap(&pdev->dev, regs->start,
254 resource_size(regs));
254 if (!uart.port.membase) 255 if (!uart.port.membase)
255 return -ENOMEM; 256 return -ENOMEM;
256 257