| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Copyright (c) 2010-2011, Code Aurora Forum. All rights reserved. |
|---|
| 3 | 4 | * Copyright (c) 2014, Sony Mobile Communications Inc. |
|---|
| 4 | | - * |
|---|
| 5 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 6 | | - * it under the terms of the GNU General Public License version 2 and |
|---|
| 7 | | - * only version 2 as published by the Free Software Foundation. |
|---|
| 8 | | - * |
|---|
| 9 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 10 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 11 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 12 | | - * GNU General Public License for more details. |
|---|
| 13 | 5 | */ |
|---|
| 14 | 6 | |
|---|
| 15 | 7 | #include <linux/delay.h> |
|---|
| .. | .. |
|---|
| 213 | 205 | return error; |
|---|
| 214 | 206 | |
|---|
| 215 | 207 | pwrkey->irq = platform_get_irq(pdev, 0); |
|---|
| 216 | | - if (pwrkey->irq < 0) { |
|---|
| 217 | | - dev_err(&pdev->dev, "failed to get irq\n"); |
|---|
| 208 | + if (pwrkey->irq < 0) |
|---|
| 218 | 209 | return pwrkey->irq; |
|---|
| 219 | | - } |
|---|
| 220 | 210 | |
|---|
| 221 | 211 | error = regmap_read(pwrkey->regmap, pwrkey->baseaddr + PON_REV2, |
|---|
| 222 | 212 | &pwrkey->revision); |
|---|