ARM: footbridge: trim down old ISA rtc setup
This fixes a "start_kernel(): bug: interrupts were enabled early". rtc_cmos now takes care of initializing the ISA RTC and reading the current time and date from it; there's no need to repeat that here, thereby causing interrupts to be enabled too early. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
@@ -11,6 +11,9 @@
|
||||
#include <linux/serial_8250.h>
|
||||
|
||||
#include <asm/irq.h>
|
||||
#include <asm/hardware/dec21285.h>
|
||||
|
||||
#include "common.h"
|
||||
|
||||
static struct resource rtc_resources[] = {
|
||||
[0] = {
|
||||
@@ -77,11 +80,18 @@ static struct platform_device serial_device = {
|
||||
|
||||
static int __init footbridge_isa_init(void)
|
||||
{
|
||||
int err;
|
||||
int err = 0;
|
||||
|
||||
err = platform_device_register(&rtc_device);
|
||||
if (err)
|
||||
printk(KERN_ERR "Unable to register RTC device: %d\n", err);
|
||||
if (!footbridge_cfn_mode())
|
||||
return 0;
|
||||
|
||||
/* Personal server doesn't have RTC */
|
||||
if (!machine_is_personal_server()) {
|
||||
isa_rtc_init();
|
||||
err = platform_device_register(&rtc_device);
|
||||
if (err)
|
||||
printk(KERN_ERR "Unable to register RTC device: %d\n", err);
|
||||
}
|
||||
err = platform_device_register(&serial_device);
|
||||
if (err)
|
||||
printk(KERN_ERR "Unable to register serial device: %d\n", err);
|
||||
|
Reference in New Issue
Block a user