summaryrefslogtreecommitdiffstats
path: root/drivers/serial/serial_pl010.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/serial/serial_pl010.c')
-rw-r--r--drivers/serial/serial_pl010.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/serial/serial_pl010.c b/drivers/serial/serial_pl010.c
index 81cea776a6..06f9d2dcdc 100644
--- a/drivers/serial/serial_pl010.c
+++ b/drivers/serial/serial_pl010.c
@@ -135,10 +135,14 @@ static int pl010_tstc(struct console_device *cdev)
static int pl010_probe(struct device_d *dev)
{
+ struct resource *iores;
struct console_device *cdev;
cdev = xzalloc(sizeof(struct console_device));
- dev->priv = dev_request_mem_region(dev, 0);
+ iores = dev_request_mem_resource(dev, 0);
+ if (IS_ERR(iores))
+ return PTR_ERR(iores);
+ dev->priv = IOMEM(iores->start);
cdev->dev = dev;
cdev->tstc = pl010_tstc;
cdev->putc = pl010_putc;