hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/drivers/power/supply/88pm860x_battery.c
....@@ -1,13 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Battery driver for Marvell 88PM860x PMIC
34 *
45 * Copyright (c) 2012 Marvell International Ltd.
56 * Author: Jett Zhou <jtzhou@marvell.com>
67 * 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.
118 */
129
1310 #include <linux/kernel.h>
....@@ -924,16 +921,12 @@
924921 return -ENOMEM;
925922
926923 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)
929925 return -EINVAL;
930
- }
931926
932927 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)
935929 return -EINVAL;
936
- }
937930
938931 info->chip = chip;
939932 info->i2c =