rtc.c (5c34202b8bf942da411b6599668a76b07449bbfd) rtc.c (d5ab1a6910fe850fa092888f210cf6c43136a7ab)
1/*
2 * Registration of Cobalt RTC platform device.
3 *
4 * Copyright (C) 2007 Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or

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

15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 */
20#include <linux/errno.h>
21#include <linux/init.h>
22#include <linux/ioport.h>
1/*
2 * Registration of Cobalt RTC platform device.
3 *
4 * Copyright (C) 2007 Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or

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

15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 */
20#include <linux/errno.h>
21#include <linux/init.h>
22#include <linux/ioport.h>
23#include <linux/mc146818rtc.h>
23#include <linux/platform_device.h>
24
25static struct resource cobalt_rtc_resource[] __initdata = {
26 {
27 .start = 0x70,
28 .end = 0x77,
29 .flags = IORESOURCE_IO,
30 },
31 {
24#include <linux/platform_device.h>
25
26static struct resource cobalt_rtc_resource[] __initdata = {
27 {
28 .start = 0x70,
29 .end = 0x77,
30 .flags = IORESOURCE_IO,
31 },
32 {
32 .start = 8,
33 .end = 8,
33 .start = RTC_IRQ,
34 .end = RTC_IRQ,
34 .flags = IORESOURCE_IRQ,
35 },
36};
37
38static __init int cobalt_rtc_add(void)
39{
40 struct platform_device *pdev;
41 int retval;

--- 22 unchanged lines hidden ---
35 .flags = IORESOURCE_IRQ,
36 },
37};
38
39static __init int cobalt_rtc_add(void)
40{
41 struct platform_device *pdev;
42 int retval;

--- 22 unchanged lines hidden ---