提交 42b63e60 编写于 作者: D 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: NDmitry Torokhov <dmitry.torokhov@gmail.com>
上级 859abd1d
...@@ -70,7 +70,7 @@ static int opencores_kbd_probe(struct platform_device *pdev) ...@@ -70,7 +70,7 @@ static int opencores_kbd_probe(struct platform_device *pdev)
opencores_kbd->addr = devm_ioremap_resource(&pdev->dev, res); opencores_kbd->addr = devm_ioremap_resource(&pdev->dev, res);
if (IS_ERR(opencores_kbd->addr)) if (IS_ERR(opencores_kbd->addr))
error = PTR_ERR(opencores_kbd->addr); return PTR_ERR(opencores_kbd->addr);
input->name = pdev->name; input->name = pdev->name;
input->phys = "opencores-kbd/input0"; input->phys = "opencores-kbd/input0";
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册