diff options
| -rw-r--r-- | drivers/input/serio/apbps2.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/input/serio/apbps2.c b/drivers/input/serio/apbps2.c index 2c14e6fa64c2..17e01a807ddc 100644 --- a/drivers/input/serio/apbps2.c +++ b/drivers/input/serio/apbps2.c | |||
| @@ -147,11 +147,9 @@ static int apbps2_of_probe(struct platform_device *ofdev) | |||
| 147 | 147 | ||
| 148 | /* Find Device Address */ | 148 | /* Find Device Address */ |
| 149 | res = platform_get_resource(ofdev, IORESOURCE_MEM, 0); | 149 | res = platform_get_resource(ofdev, IORESOURCE_MEM, 0); |
| 150 | priv->regs = devm_request_and_ioremap(&ofdev->dev, res); | 150 | priv->regs = devm_ioremap_resource(&ofdev->dev, res); |
| 151 | if (!priv->regs) { | 151 | if (IS_ERR(priv->regs)) |
| 152 | dev_err(&ofdev->dev, "io-regs mapping failed\n"); | 152 | return PTR_ERR(priv->regs); |
| 153 | return -EBUSY; | ||
| 154 | } | ||
| 155 | 153 | ||
| 156 | /* Reset hardware, disable interrupt */ | 154 | /* Reset hardware, disable interrupt */ |
| 157 | iowrite32be(0, &priv->regs->ctrl); | 155 | iowrite32be(0, &priv->regs->ctrl); |
