| .. | .. |
|---|
| 48 | 48 | * struct sprd_pmic_eic - PMIC EIC controller |
|---|
| 49 | 49 | * @chip: the gpio_chip structure. |
|---|
| 50 | 50 | * @intc: the irq_chip structure. |
|---|
| 51 | | - * @regmap: the regmap from the parent device. |
|---|
| 51 | + * @map: the regmap from the parent device. |
|---|
| 52 | 52 | * @offset: the EIC controller's offset address of the PMIC. |
|---|
| 53 | 53 | * @reg: the array to cache the EIC registers. |
|---|
| 54 | 54 | * @buslock: for bus lock/sync and unlock. |
|---|
| .. | .. |
|---|
| 305 | 305 | mutex_init(&pmic_eic->buslock); |
|---|
| 306 | 306 | |
|---|
| 307 | 307 | 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) |
|---|
| 310 | 309 | return pmic_eic->irq; |
|---|
| 311 | | - } |
|---|
| 312 | 310 | |
|---|
| 313 | 311 | pmic_eic->map = dev_get_regmap(pdev->dev.parent, NULL); |
|---|
| 314 | 312 | if (!pmic_eic->map) |
|---|
| .. | .. |
|---|
| 322 | 320 | |
|---|
| 323 | 321 | ret = devm_request_threaded_irq(&pdev->dev, pmic_eic->irq, NULL, |
|---|
| 324 | 322 | sprd_pmic_eic_irq_handler, |
|---|
| 325 | | - IRQF_TRIGGER_LOW | |
|---|
| 326 | 323 | IRQF_ONESHOT | IRQF_NO_SUSPEND, |
|---|
| 327 | 324 | dev_name(&pdev->dev), pmic_eic); |
|---|
| 328 | 325 | if (ret) { |
|---|
| .. | .. |
|---|
| 365 | 362 | } |
|---|
| 366 | 363 | |
|---|
| 367 | 364 | static const struct of_device_id sprd_pmic_eic_of_match[] = { |
|---|
| 368 | | - { .compatible = "sprd,sc27xx-eic", }, |
|---|
| 365 | + { .compatible = "sprd,sc2731-eic", }, |
|---|
| 369 | 366 | { /* end of list */ } |
|---|
| 370 | 367 | }; |
|---|
| 371 | 368 | MODULE_DEVICE_TABLE(of, sprd_pmic_eic_of_match); |
|---|