forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
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) {