mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-13 16:40:22 +00:00
Input: opencores-kbd - fix error handling
When I was adjusting patch in 848d479361793edb79aa68140cb64d4ec9032d88 to use devm_ioremap_resource() I messed it up. Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
This commit is contained in:
parent
859abd1d59
commit
42b63e603e
@ -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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user