[PATCH] Fix bugs in analog tv i2c-helper chipset drivers
[linux-2.6/history.git] / arch / mips / lib / rtc-no.c
blob59010f6712d9dcb7da78855499a7c0790964f557
1 /*
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.
6 * Stub RTC routines to keep Linux from crashing on machine which don't
7 * have a RTC chip.
9 * Copyright (C) 1998, 2001, 2003 by Ralf Baechle
11 #include <linux/kernel.h>
12 #include <linux/mc146818rtc.h>
14 static unsigned int shouldnt_happen(void)
16 static int called;
18 if (called) {
19 called = 1;
20 printk(KERN_DEBUG "RTC functions called - shouldn't happen\n");
23 return 0;
26 struct rtc_ops no_rtc_ops = {
27 .rtc_read_data = (void *) &shouldnt_happen,
28 .rtc_write_data = (void *) &shouldnt_happen,
29 .rtc_bcd_mode = (void *) &shouldnt_happen