Commit 42b63e60 authored by Dmitry Torokhov's avatar Dmitry Torokhov

Input: opencores-kbd - fix error handling

When I was adjusting patch in 848d4793 to
use devm_ioremap_resource() I messed it up.
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 859abd1d
......@@ -70,7 +70,7 @@ static int opencores_kbd_probe(struct platform_device *pdev)
opencores_kbd->addr = devm_ioremap_resource(&pdev->dev, res);
if (IS_ERR(opencores_kbd->addr))
error = PTR_ERR(opencores_kbd->addr);
return PTR_ERR(opencores_kbd->addr);
input->name = pdev->name;
input->phys = "opencores-kbd/input0";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment