hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/rtc/rtc-88pm80x.c
....@@ -1,22 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0
12 /*
23 * Real Time Clock driver for Marvell 88PM80x PMIC
34 *
45 * Copyright (c) 2012 Marvell International Ltd.
56 * Wenzeng Chen<wzch@marvell.com>
67 * Qiao Zhou <zhouqiao@marvell.com>
7
- *
8
- * This file is subject to the terms and conditions of the GNU General
9
- * Public License. See the file "COPYING" in the main directory of this
10
- * archive for more details.
11
- *
12
- * This program is distributed in the hope that it will be useful,
13
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
- * GNU General Public License for more details.
16
- *
17
- * You should have received a copy of the GNU General Public License
18
- * along with this program; if not, write to the Free Software
19
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
208 */
219
2210 #include <linux/kernel.h>
....@@ -276,7 +264,6 @@
276264 return -ENOMEM;
277265 info->irq = platform_get_irq(pdev, 0);
278266 if (info->irq < 0) {
279
- dev_err(&pdev->dev, "No IRQ resource!\n");
280267 ret = -EINVAL;
281268 goto out;
282269 }
....@@ -308,10 +295,9 @@
308295 info->rtc_dev->range_max = U32_MAX;
309296
310297 ret = rtc_register_device(info->rtc_dev);
311
- if (ret) {
312
- dev_err(&pdev->dev, "Failed to register RTC device: %d\n", ret);
298
+ if (ret)
313299 goto out_rtc;
314
- }
300
+
315301 /*
316302 * enable internal XO instead of internal 3.25MHz clock since it can
317303 * free running in PMIC power-down state.