forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 072de836f53be56a70cecf70b43ae43b7ce17376
kernel/drivers/gpio/gpio-pmic-eic-sprd.c
....@@ -48,7 +48,7 @@
4848 * struct sprd_pmic_eic - PMIC EIC controller
4949 * @chip: the gpio_chip structure.
5050 * @intc: the irq_chip structure.
51
- * @regmap: the regmap from the parent device.
51
+ * @map: the regmap from the parent device.
5252 * @offset: the EIC controller's offset address of the PMIC.
5353 * @reg: the array to cache the EIC registers.
5454 * @buslock: for bus lock/sync and unlock.
....@@ -305,10 +305,8 @@
305305 mutex_init(&pmic_eic->buslock);
306306
307307 pmic_eic->irq = platform_get_irq(pdev, 0);
308
- if (pmic_eic->irq < 0) {
309
- dev_err(&pdev->dev, "Failed to get PMIC EIC interrupt.\n");
308
+ if (pmic_eic->irq < 0)
310309 return pmic_eic->irq;
311
- }
312310
313311 pmic_eic->map = dev_get_regmap(pdev->dev.parent, NULL);
314312 if (!pmic_eic->map)
....@@ -322,7 +320,6 @@
322320
323321 ret = devm_request_threaded_irq(&pdev->dev, pmic_eic->irq, NULL,
324322 sprd_pmic_eic_irq_handler,
325
- IRQF_TRIGGER_LOW |
326323 IRQF_ONESHOT | IRQF_NO_SUSPEND,
327324 dev_name(&pdev->dev), pmic_eic);
328325 if (ret) {
....@@ -365,7 +362,7 @@
365362 }
366363
367364 static const struct of_device_id sprd_pmic_eic_of_match[] = {
368
- { .compatible = "sprd,sc27xx-eic", },
365
+ { .compatible = "sprd,sc2731-eic", },
369366 { /* end of list */ }
370367 };
371368 MODULE_DEVICE_TABLE(of, sprd_pmic_eic_of_match);