Linux MIPS Architecture development
 help / color / mirror / Atom feed
* [PATCH 9/12] removed unused resources for Cobalt
@ 2006-08-22 13:57 Yoichi Yuasa
  2006-08-24 19:31 ` Peter Horton
  0 siblings, 1 reply; 6+ messages in thread
From: Yoichi Yuasa @ 2006-08-22 13:57 UTC (permalink / raw)
  To: Ralf Baechle; +Cc: yoichi_yuasa, linux-mips

Hi Ralf,

This patch has removed unused resources for Cobalt.

Yoichi

Signed-off-by: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>

diff -pruN -X mips/Documentation/dontdiff mips-orig/arch/mips/gt64120/cobalt/setup.c mips/arch/mips/gt64120/cobalt/setup.c
--- mips-orig/arch/mips/gt64120/cobalt/setup.c	2006-08-21 23:02:23.229549750 +0900
+++ mips/arch/mips/gt64120/cobalt/setup.c	2006-08-21 23:00:31.314534000 +0900
@@ -49,42 +49,10 @@ void __init plat_timer_setup(struct irqa
 	setup_irq(COBALT_TIMER3_IRQ, irq);
 }
 
-static struct resource cobalt_io_resources[] = {
-	{
-		.start	= 0x00,
-		.end	= 0x1f,
-		.name	= "dma1",
-		.flags	= IORESOURCE_BUSY
-	}, {
-		.start	= 0x40,
-		.end	= 0x5f,
-		.name	= "timer",
-		.flags	= IORESOURCE_BUSY
-	}, {
-		.start	= 0x60,
-		.end	= 0x6f,
-		.name	= "keyboard",
-		.flags	= IORESOURCE_BUSY
-	}, {
-		.start	= 0x80,
-		.end	= 0x8f,
-		.name	= "dma page reg",
-		.flags	= IORESOURCE_BUSY
-	}, {
-		.start	= 0xc0,
-		.end	= 0xdf,
-		.name	= "dma2",
-		.flags	= IORESOURCE_BUSY
-	},
-};
-
-#define COBALT_IO_RESOURCES (sizeof(cobalt_io_resources)/sizeof(struct resource))
-
 void __init plat_mem_setup(void)
 {
 	static struct uart_port uart;
 	unsigned int devfn = PCI_DEVFN(COBALT_PCICONF_VIA, 0);
-	int i;
 
 	gt641xx_disable_alltimers();
 	board_time_init = gt641xx_timer3_init;
@@ -93,10 +61,6 @@ void __init plat_mem_setup(void)
 
 	ioport_resource.end = 0xffff;
 
-	/* request I/O space for devices used on all i[345]86 PCs */
-	for (i = 0; i < COBALT_IO_RESOURCES; i++)
-		request_resource(&ioport_resource, cobalt_io_resources + i);
-
         /* Read the cobalt id register out of the PCI config space */
         PCI_CFG_SET(devfn, (VIA_COBALT_BRD_ID_REG & ~0x3));
         cobalt_board_id = GT_READ(GT_PCI0_CFGDATA_OFS);

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-08-31  3:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-22 13:57 [PATCH 9/12] removed unused resources for Cobalt Yoichi Yuasa
2006-08-24 19:31 ` Peter Horton
2006-08-24 23:11   ` Yoichi Yuasa
2006-08-24 23:11     ` Yoichi Yuasa
2006-08-25  0:11     ` Ralf Baechle
2006-08-31  3:48       ` Yoichi Yuasa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox