diff options
Diffstat (limited to 'drivers/tty/serial/sccnxp.c')
-rw-r--r-- | drivers/tty/serial/sccnxp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/tty/serial/sccnxp.c b/drivers/tty/serial/sccnxp.c index 418b495e3233..e869eab180be 100644 --- a/drivers/tty/serial/sccnxp.c +++ b/drivers/tty/serial/sccnxp.c | |||
@@ -15,6 +15,7 @@ | |||
15 | #define SUPPORT_SYSRQ | 15 | #define SUPPORT_SYSRQ |
16 | #endif | 16 | #endif |
17 | 17 | ||
18 | #include <linux/err.h> | ||
18 | #include <linux/module.h> | 19 | #include <linux/module.h> |
19 | #include <linux/device.h> | 20 | #include <linux/device.h> |
20 | #include <linux/console.h> | 21 | #include <linux/console.h> |
@@ -875,10 +876,9 @@ static int sccnxp_probe(struct platform_device *pdev) | |||
875 | goto err_out; | 876 | goto err_out; |
876 | } | 877 | } |
877 | 878 | ||
878 | membase = devm_request_and_ioremap(&pdev->dev, res); | 879 | membase = devm_ioremap_resource(&pdev->dev, res); |
879 | if (!membase) { | 880 | if (IS_ERR(membase)) { |
880 | dev_err(&pdev->dev, "Failed to ioremap\n"); | 881 | ret = PTR_ERR(membase); |
881 | ret = -EIO; | ||
882 | goto err_out; | 882 | goto err_out; |
883 | } | 883 | } |
884 | 884 | ||