OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [linux-2.4/] [arch/] [mips64/] [lib/] [rtc-no.c] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1275 phoenix
/*
2
 * This file is subject to the terms and conditions of the GNU General Public
3
 * License.  See the file "COPYING" in the main directory of this archive
4
 * for more details.
5
 *
6
 * Stub RTC routines to keep Linux from crashing on machine which don't
7
 * have a RTC chip.
8
 *
9
 * Copyright (C) 1998, 2001 by Ralf Baechle
10
 */
11
#include <linux/kernel.h>
12
#include <linux/module.h>
13
#include <linux/mc146818rtc.h>
14
 
15
static unsigned int shouldnt_happen(void)
16
{
17
        static int called;
18
 
19
        if (!called) {
20
                called = 1;
21
                printk(KERN_DEBUG "RTC functions called - shouldn't happen\n");
22
        }
23
 
24
        return 0;
25
}
26
 
27
struct rtc_ops no_rtc_ops = {
28
    .rtc_read_data  = (void *) &shouldnt_happen,
29
    .rtc_write_data = (void *) &shouldnt_happen,
30
    .rtc_bcd_mode   = (void *) &shouldnt_happen
31
};
32
 
33
EXPORT_SYMBOL(rtc_ops);

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.