diff options
author | Heikki Krogerus <heikki.krogerus@linux.intel.com> | 2013-04-11 08:43:21 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-04-11 16:23:23 -0400 |
commit | b88d0826ecb949f62597d4733e50e589058c20b4 (patch) | |
tree | 9a5ad2067af4dd7f5d94b8e7dd7315ca7312bb58 /drivers/tty | |
parent | 2920adb6dfeded0b835a809a1a2c5772d97e5965 (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')
-rw-r--r-- | drivers/tty/serial/8250/8250_dw.c | 3 |
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 | ||