rtc-mv.c (18af30e259c25a64ad69bb749c661564bc886275) rtc-mv.c (09893ee84591b0417a9186a7e7cf1503ccf99ac2)
1/*
2 * Driver for the RTC in Marvell SoCs.
3 *
4 * This file is licensed under the terms of the GNU General Public
5 * License version 2. This program is licensed "as is" without any
6 * warranty of any kind, whether express or implied.
7 */
8
9#include <linux/init.h>
10#include <linux/kernel.h>
11#include <linux/rtc.h>
12#include <linux/bcd.h>
13#include <linux/io.h>
14#include <linux/platform_device.h>
1/*
2 * Driver for the RTC in Marvell SoCs.
3 *
4 * This file is licensed under the terms of the GNU General Public
5 * License version 2. This program is licensed "as is" without any
6 * warranty of any kind, whether express or implied.
7 */
8
9#include <linux/init.h>
10#include <linux/kernel.h>
11#include <linux/rtc.h>
12#include <linux/bcd.h>
13#include <linux/io.h>
14#include <linux/platform_device.h>
15#include <linux/of.h>
15#include <linux/delay.h>
16#include <linux/gfp.h>
17#include <linux/module.h>
18
19
20#define RTC_TIME_REG_OFFS 0
21#define RTC_SECONDS_OFFS 0
22#define RTC_MINUTES_OFFS 8

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

289
290 if (pdata->irq >= 0)
291 device_init_wakeup(&pdev->dev, 0);
292
293 rtc_device_unregister(pdata->rtc);
294 return 0;
295}
296
16#include <linux/delay.h>
17#include <linux/gfp.h>
18#include <linux/module.h>
19
20
21#define RTC_TIME_REG_OFFS 0
22#define RTC_SECONDS_OFFS 0
23#define RTC_MINUTES_OFFS 8

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

290
291 if (pdata->irq >= 0)
292 device_init_wakeup(&pdev->dev, 0);
293
294 rtc_device_unregister(pdata->rtc);
295 return 0;
296}
297
298#ifdef CONFIG_OF
299static struct of_device_id rtc_mv_of_match_table[] = {
300 { .compatible = "mrvl,orion-rtc", },
301 {}
302};
303#endif
304
297static struct platform_driver mv_rtc_driver = {
298 .remove = __exit_p(mv_rtc_remove),
299 .driver = {
300 .name = "rtc-mv",
301 .owner = THIS_MODULE,
305static struct platform_driver mv_rtc_driver = {
306 .remove = __exit_p(mv_rtc_remove),
307 .driver = {
308 .name = "rtc-mv",
309 .owner = THIS_MODULE,
310 .of_match_table = of_match_ptr(rtc_mv_of_match_table),
302 },
303};
304
305static __init int mv_init(void)
306{
307 return platform_driver_probe(&mv_rtc_driver, mv_rtc_probe);
308}
309

--- 12 unchanged lines hidden ---
311 },
312};
313
314static __init int mv_init(void)
315{
316 return platform_driver_probe(&mv_rtc_driver, mv_rtc_probe);
317}
318

--- 12 unchanged lines hidden ---