.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0 |
---|
1 | 2 | /* |
---|
2 | 3 | * Real Time Clock driver for Marvell 88PM80x PMIC |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (c) 2012 Marvell International Ltd. |
---|
5 | 6 | * Wenzeng Chen<wzch@marvell.com> |
---|
6 | 7 | * 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 |
---|
20 | 8 | */ |
---|
21 | 9 | |
---|
22 | 10 | #include <linux/kernel.h> |
---|
.. | .. |
---|
276 | 264 | return -ENOMEM; |
---|
277 | 265 | info->irq = platform_get_irq(pdev, 0); |
---|
278 | 266 | if (info->irq < 0) { |
---|
279 | | - dev_err(&pdev->dev, "No IRQ resource!\n"); |
---|
280 | 267 | ret = -EINVAL; |
---|
281 | 268 | goto out; |
---|
282 | 269 | } |
---|
.. | .. |
---|
308 | 295 | info->rtc_dev->range_max = U32_MAX; |
---|
309 | 296 | |
---|
310 | 297 | 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) |
---|
313 | 299 | goto out_rtc; |
---|
314 | | - } |
---|
| 300 | + |
---|
315 | 301 | /* |
---|
316 | 302 | * enable internal XO instead of internal 3.25MHz clock since it can |
---|
317 | 303 | * free running in PMIC power-down state. |
---|