diff options
author | Heikki Krogerus <heikki.krogerus@linux.intel.com> | 2013-04-11 12:43:21 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-04-11 20:23:23 (GMT) |
commit | b88d0826ecb949f62597d4733e50e589058c20b4 (patch) | |
tree | 9a5ad2067af4dd7f5d94b8e7dd7315ca7312bb58 /drivers/tty/serial | |
parent | 2920adb6dfeded0b835a809a1a2c5772d97e5965 (diff) | |
download | linux-fsl-qoriq-b88d0826ecb949f62597d4733e50e589058c20b4.tar.xz |
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')
-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 b7c7d6a..39b7ae4 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; |