rtc-pl030.c (75bf465f0bc33e9b776a46d6a1b9b990f5fb7c37) rtc-pl030.c (9896169a1222a8db725fa70b3bad0d813cc3b144)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * linux/drivers/rtc/rtc-pl030.c
4 *
5 * Copyright (C) 2000-2001 Deep Blue Solutions Ltd.
6 */
7#include <linux/module.h>
8#include <linux/rtc.h>

--- 102 unchanged lines hidden (view full) ---

111
112 rtc->rtc = devm_rtc_allocate_device(&dev->dev);
113 if (IS_ERR(rtc->rtc)) {
114 ret = PTR_ERR(rtc->rtc);
115 goto err_rtc;
116 }
117
118 rtc->rtc->ops = &pl030_ops;
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * linux/drivers/rtc/rtc-pl030.c
4 *
5 * Copyright (C) 2000-2001 Deep Blue Solutions Ltd.
6 */
7#include <linux/module.h>
8#include <linux/rtc.h>

--- 102 unchanged lines hidden (view full) ---

111
112 rtc->rtc = devm_rtc_allocate_device(&dev->dev);
113 if (IS_ERR(rtc->rtc)) {
114 ret = PTR_ERR(rtc->rtc);
115 goto err_rtc;
116 }
117
118 rtc->rtc->ops = &pl030_ops;
119 rtc->rtc->range_max = U32_MAX;
119 rtc->base = ioremap(dev->res.start, resource_size(&dev->res));
120 if (!rtc->base) {
121 ret = -ENOMEM;
122 goto err_rtc;
123 }
124
125 __raw_writel(0, rtc->base + RTC_CR);
126 __raw_writel(0, rtc->base + RTC_EOI);

--- 61 unchanged lines hidden ---
120 rtc->base = ioremap(dev->res.start, resource_size(&dev->res));
121 if (!rtc->base) {
122 ret = -ENOMEM;
123 goto err_rtc;
124 }
125
126 __raw_writel(0, rtc->base + RTC_CR);
127 __raw_writel(0, rtc->base + RTC_EOI);

--- 61 unchanged lines hidden ---