Received: from mail.onstor.com ([66.201.51.107]) by onstor-exch02.onstor.net with Microsoft SMTPSVC(6.0.3790.3959);
	 Wed, 29 Oct 2008 17:29:31 -0700
Received: from chiesmta2-3.messageone.com ([216.203.30.55]) by mail.onstor.com with Microsoft SMTPSVC(6.0.3790.3959);
	 Wed, 29 Oct 2008 17:29:30 -0700
Received: from ftp.linux-mips.org (ftp.linux-mips.org [213.58.128.207])
	by chiesmta2-3.messageone.com (8.13.8/8.13.8) with ESMTP id m9U0TTkI002312
	for <andy.sharp@onstor.com>; Wed, 29 Oct 2008 19:29:30 -0500
Received: from localhost.localdomain ([127.0.0.1]:16872 "EHLO
	ftp.linux-mips.org") by ftp.linux-mips.org with ESMTP
	id S22682408AbYJ3A3M (ORCPT <rfc822;andy.sharp@onstor.com>);
	Thu, 30 Oct 2008 00:29:12 +0000
Received: with ECARTIS (v1.0.0; list linux-mips); Thu, 30 Oct 2008 00:28:56 +0000 (GMT)
Received: from smtp1.linux-foundation.org ([140.211.169.13]:58293 "EHLO
	smtp1.linux-foundation.org") by ftp.linux-mips.org with ESMTP
	id S22681875AbYJ2VWI (ORCPT <rfc822;linux-mips@linux-mips.org>);
	Wed, 29 Oct 2008 21:22:08 +0000
Received: from imap1.linux-foundation.org (imap1.linux-foundation.org [140.211.169.55])
	by smtp1.linux-foundation.org (8.14.2/8.13.5/Debian-3ubuntu1.1) with ESMTP id m9TLLYVH009839
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO);
	Wed, 29 Oct 2008 14:21:35 -0700
Received: from localhost.localdomain (localhost [127.0.0.1])
	by imap1.linux-foundation.org (8.13.5.20060308/8.13.5/Debian-3ubuntu1.1) with ESMTP id m9TLLXQF019907;
	Wed, 29 Oct 2008 14:21:33 -0700
Message-Id: <200810292121.m9TLLXQF019907@imap1.linux-foundation.org>
Subject: [patch 2/3] drivers/rtc/rtc-ds1286.c is borked
To: ralf@linux-mips.org
Cc: linux-mips@linux-mips.org, akpm@linux-foundation.org,
        alessandro.zummo@towertech.it, tsbogend@alpha.franken.de
From: akpm@linux-foundation.org
Date: 	Wed, 29 Oct 2008 14:21:33 -0700
X-MIMEDefang-Filter: lf$Revision: 1.188 $
X-Scanned-By: MIMEDefang 2.63 on 140.211.169.13
X-archive-position: 21102
X-ecartis-version: Ecartis v1.0.0
Sender: linux-mips-bounce@linux-mips.org
Errors-to: linux-mips-bounce@linux-mips.org
X-original-sender: akpm@linux-foundation.org
Precedence: bulk
X-list: 	linux-mips
X-MessageOne-Virus-Version: vendor=fsecure engine=4.65.7400:2.4.4,1.2.40,4.0.164 definitions=2008-10-29_07:2008-10-10,2008-10-29,2008-10-29 signatures=0
X-MessageOne-Virus-Scanned: Clean
X-MessageOne-Envelope-Sender: linux-mips-bounce@linux-mips.org
X-MessageOne-Spam-Details: rule=m773emszm_notspam policy=m773emszm score=0 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=3.1.0-0810130000 definitions=main-0810290153
X-MessageOne-Spam-Score: 0
X-MessageOne-Spam-Bar: 
Return-Path: linux-mips-bounce@linux-mips.org
X-OriginalArrivalTime: 30 Oct 2008 00:29:31.0225 (UTC) FILETIME=[935C7C90:01C93A26]

From: Andrew Morton <akpm@linux-foundation.org>

drivers/rtc/rtc-ds1286.c: In function 'ds1286_rtc_read':
drivers/rtc/rtc-ds1286.c:33: error: implicit declaration of function '__raw_readl'
drivers/rtc/rtc-ds1286.c: In function 'ds1286_rtc_write':
drivers/rtc/rtc-ds1286.c:38: error: implicit declaration of function '__raw_writel'
drivers/rtc/rtc-ds1286.c: In function 'ds1286_probe':
drivers/rtc/rtc-ds1286.c:345: error: implicit declaration of function 'ioremap'
drivers/rtc/rtc-ds1286.c:345: warning: assignment makes pointer from integer without a cast
drivers/rtc/rtc-ds1286.c:365: error: implicit declaration of function 'iounmap'

Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Cc: Alessandro Zummo <alessandro.zummo@towertech.it>
Cc: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 drivers/rtc/Kconfig |    1 +
 1 file changed, 1 insertion(+)

diff -puN drivers/rtc/Kconfig~drivers-rtc-rtc-ds1286c-is-borked drivers/rtc/Kconfig
--- a/drivers/rtc/Kconfig~drivers-rtc-rtc-ds1286c-is-borked
+++ a/drivers/rtc/Kconfig
@@ -373,6 +373,7 @@ config RTC_DRV_DS1216
 
 config RTC_DRV_DS1286
 	tristate "Dallas DS1286"
+	depends on MIPS
 	help
 	  If you say yes here you get support for the Dallas DS1286 RTC chips.
 
_

