forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 23fa18eaa71266feff7ba8d83022d9e1cc83c65a
kernel/drivers/input/keyboard/spear-keyboard.c
....@@ -191,10 +191,8 @@
191191 int error;
192192
193193 irq = platform_get_irq(pdev, 0);
194
- if (irq < 0) {
195
- dev_err(&pdev->dev, "not able to get irq for the device\n");
194
+ if (irq < 0)
196195 return irq;
197
- }
198196
199197 kbd = devm_kzalloc(&pdev->dev, sizeof(*kbd), GFP_KERNEL);
200198 if (!kbd) {