projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix the comment
[openwrt.git]
/
target
/
linux
/
rdc-2.6
/
files
/
arch
/
i386
/
mach-rdc
/
platform.c
diff --git
a/target/linux/rdc-2.6/files/arch/i386/mach-rdc/platform.c
b/target/linux/rdc-2.6/files/arch/i386/mach-rdc/platform.c
index
aa245a0
..
6809dcd
100644
(file)
--- a/
target/linux/rdc-2.6/files/arch/i386/mach-rdc/platform.c
+++ b/
target/linux/rdc-2.6/files/arch/i386/mach-rdc/platform.c
@@
-30,13
+30,14
@@
#include <linux/platform_device.h>
#include <asm/gpio.h>
#include <linux/platform_device.h>
#include <asm/gpio.h>
-#include <asm/mach-rdc/rdc321x_defs.h>
+
+#define PFX "rdc321x: "
/* FIXME : Flash */
static struct resource rdc_flash_resource[] = {
[0] = {
/* FIXME : Flash */
static struct resource rdc_flash_resource[] = {
[0] = {
- .start =
RDC_FLASH_BAS
E,
- .end =
RDC_FLASH_BASE+CONFIG_MTD_RDC3210_SIZE
-1,
+ .start =
(u32)-CONFIG_MTD_RDC3210_SIZ
E,
+ .end =
(u32)
-1,
.flags = IORESOURCE_MEM,
},
};
.flags = IORESOURCE_MEM,
},
};
@@
-55,17
+56,26
@@
static struct platform_device rdc321x_leds = {
.num_resources = 0,
};
.num_resources = 0,
};
+static struct platform_device rdc321x_wdt = {
+ .name = "rdc321x-wdt",
+ .id = -1,
+ .num_resources = 0,
+};
+
static int __init rdc_board_setup(void)
{
int err;
err = platform_device_register(&rdc_flash_device);
if (err)
static int __init rdc_board_setup(void)
{
int err;
err = platform_device_register(&rdc_flash_device);
if (err)
- printk(KERN_ALERT
"rdc321x:
failed to register flash\n");
+ printk(KERN_ALERT
PFX "
failed to register flash\n");
err = platform_device_register(&rdc321x_leds);
if (err)
err = platform_device_register(&rdc321x_leds);
if (err)
- printk(KERN_ALERT "rdc321x: failed to register LEDS\n");
+ printk(KERN_ALERT PFX "failed to register LEDS\n");
+
+ err = platform_device_register(&rdc321x_wdt);
+ printk(KERN_ALERT PFX "failed to register watchdog\n");
return err;
}
return err;
}
This page took
0.022193 seconds
and
4
git commands to generate.