| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * Battery driver for Marvell 88PM860x PMIC |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (c) 2012 Marvell International Ltd. |
|---|
| 5 | 6 | * Author: Jett Zhou <jtzhou@marvell.com> |
|---|
| 6 | 7 | * Haojian Zhuang <haojian.zhuang@marvell.com> |
|---|
| 7 | | - * |
|---|
| 8 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 9 | | - * it under the terms of the GNU General Public License version 2 as |
|---|
| 10 | | - * published by the Free Software Foundation. |
|---|
| 11 | 8 | */ |
|---|
| 12 | 9 | |
|---|
| 13 | 10 | #include <linux/kernel.h> |
|---|
| .. | .. |
|---|
| 924 | 921 | return -ENOMEM; |
|---|
| 925 | 922 | |
|---|
| 926 | 923 | info->irq_cc = platform_get_irq(pdev, 0); |
|---|
| 927 | | - if (info->irq_cc <= 0) { |
|---|
| 928 | | - dev_err(&pdev->dev, "No IRQ resource!\n"); |
|---|
| 924 | + if (info->irq_cc <= 0) |
|---|
| 929 | 925 | return -EINVAL; |
|---|
| 930 | | - } |
|---|
| 931 | 926 | |
|---|
| 932 | 927 | info->irq_batt = platform_get_irq(pdev, 1); |
|---|
| 933 | | - if (info->irq_batt <= 0) { |
|---|
| 934 | | - dev_err(&pdev->dev, "No IRQ resource!\n"); |
|---|
| 928 | + if (info->irq_batt <= 0) |
|---|
| 935 | 929 | return -EINVAL; |
|---|
| 936 | | - } |
|---|
| 937 | 930 | |
|---|
| 938 | 931 | info->chip = chip; |
|---|
| 939 | 932 | info->i2c = |
|---|