Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 284697
b: refs/heads/master
c: 1c043f1
h: refs/heads/master
i:
  284695: fd014f8
v: v3
  • Loading branch information
Manuel Lauss authored and Ralf Baechle committed Dec 7, 2011
1 parent 941f5c8 commit da8caa7
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 61 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c9af5144ce5e6270a8bffad348cf2f20648f5f67
refs/heads/master: 1c043f16a01c144305e952025e883b55706f2450
8 changes: 0 additions & 8 deletions trunk/arch/mips/alchemy/devboards/db1200.c
Original file line number Diff line number Diff line change
Expand Up @@ -312,13 +312,6 @@ static struct platform_device db1200_ide_dev = {

/**********************************************************************/

static struct platform_device db1200_rtc_dev = {
.name = "rtc-au1xxx",
.id = -1,
};

/**********************************************************************/

/* SD carddetects: they're supposed to be edge-triggered, but ack
* doesn't seem to work (CPLD Rev 2). Instead, the screaming one
* is disabled and its counterpart enabled. The 500ms timeout is
Expand Down Expand Up @@ -755,7 +748,6 @@ static struct platform_device *db1200_devs[] __initdata = {
&db1200_mmc0_dev,
&au1200_lcd_dev,
&db1200_eth_dev,
&db1200_rtc_dev,
&db1200_nand_dev,
&db1200_audiodma_dev,
&db1200_audio_dev,
Expand Down
8 changes: 0 additions & 8 deletions trunk/arch/mips/alchemy/devboards/db1300.c
Original file line number Diff line number Diff line change
Expand Up @@ -386,13 +386,6 @@ static struct platform_device db1300_5waysw_dev = {

/**********************************************************************/

static struct platform_device db1300_rtc_dev = {
.name = "rtc-au1xxx",
.id = -1,
};

/**********************************************************************/

static struct pata_platform_info db1300_ide_info = {
.ioport_shift = DB1300_IDE_REG_SHIFT,
};
Expand Down Expand Up @@ -697,7 +690,6 @@ static struct platform_device *db1300_dev[] __initdata = {
&db1300_eth_dev,
&db1300_i2c_dev,
&db1300_5waysw_dev,
&db1300_rtc_dev,
&db1300_nand_dev,
&db1300_ide_dev,
&db1300_sd0_dev,
Expand Down
8 changes: 0 additions & 8 deletions trunk/arch/mips/alchemy/devboards/db1550.c
Original file line number Diff line number Diff line change
Expand Up @@ -372,13 +372,6 @@ static struct platform_device db1550_sndi2s_dev = {

/**********************************************************************/

static struct platform_device db1550_rtc_dev = {
.name = "rtc-au1xxx",
.id = -1,
};

/**********************************************************************/

static int db1550_map_pci_irq(const struct pci_dev *d, u8 slot, u8 pin)
{
if ((slot < 11) || (slot > 13) || pin == 0)
Expand Down Expand Up @@ -427,7 +420,6 @@ static struct platform_device db1550_pci_host_dev = {
/**********************************************************************/

static struct platform_device *db1550_devs[] __initdata = {
&db1550_rtc_dev,
&db1550_nand_dev,
&db1550_i2c_dev,
&db1550_ac97_dev,
Expand Down
13 changes: 11 additions & 2 deletions trunk/arch/mips/alchemy/devboards/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@
#include <asm/reboot.h>
#include <asm/mach-db1x00/bcsr.h>


static struct platform_device db1x00_rtc_dev = {
.name = "rtc-au1xxx",
.id = -1,
};


static void db1x_power_off(void)
{
bcsr_write(BCSR_RESETS, 0);
Expand All @@ -25,7 +32,7 @@ static void db1x_reset(char *c)
bcsr_write(BCSR_SYSTEM, 0);
}

static int __init db1x_poweroff_setup(void)
static int __init db1x_late_setup(void)
{
if (!pm_power_off)
pm_power_off = db1x_power_off;
Expand All @@ -34,9 +41,11 @@ static int __init db1x_poweroff_setup(void)
if (!_machine_restart)
_machine_restart = db1x_reset;

platform_device_register(&db1x00_rtc_dev);

return 0;
}
late_initcall(db1x_poweroff_setup);
device_initcall(db1x_late_setup);

/* register a pcmcia socket */
int __init db1x_register_pcmcia_socket(phys_addr_t pcmcia_attr_start,
Expand Down
34 changes: 0 additions & 34 deletions trunk/arch/mips/include/asm/mach-pb1x00/mc146818rtc.h

This file was deleted.

0 comments on commit da8caa7

Please sign in to comment.