Title: [4210] branches/2008R1: [#2424] Enable NET2272 on BF561-EZkit - remove request_mem_region
Revision
4210
Author
hennerich
Date
2008-02-01 08:42:21 -0600 (Fri, 01 Feb 2008)

Log Message

[#2424] Enable NET2272 on BF561-EZkit - remove request_mem_region

Diffstat

 arch/blackfin/mach-bf561/boards/ezkit.c |   25 +++++++++++++++++++++++++
 drivers/usb/gadget/net2272.c            |    7 -------
 2 files changed, 25 insertions(+), 7 deletions(-)

Modified Paths

Diff

Modified: branches/2008R1/arch/blackfin/mach-bf561/boards/ezkit.c (4209 => 4210)


--- branches/2008R1/arch/blackfin/mach-bf561/boards/ezkit.c	2008-02-01 12:24:17 UTC (rev 4209)
+++ branches/2008R1/arch/blackfin/mach-bf561/boards/ezkit.c	2008-02-01 14:42:21 UTC (rev 4210)
@@ -92,6 +92,27 @@
 arch_initcall(bfin_isp1761_init);
 #endif
 
+#if defined(CONFIG_USB_NET2272) || defined(CONFIG_USB_NET2272_MODULE)
+static struct resource net2272_bfin_resources[] = {
+	{
+		.start = 0x2C000000,
+		.end = 0x2C000000 + 0x7F,
+		.flags = IORESOURCE_MEM,
+	}, {
+		.start = IRQ_PF10,
+		.end = IRQ_PF10,
+		.flags = IORESOURCE_IRQ | IORESOURCE_IRQ_LOWLEVEL,
+	},
+};
+
+static struct platform_device net2272_bfin_device = {
+	.name = "net2272",
+	.id = -1,
+	.num_resources = ARRAY_SIZE(net2272_bfin_resources),
+	.resource = net2272_bfin_resources,
+};
+#endif
+
 /*
  *  USB-LAN EzExtender board
  *  Driver needs to know address, irq and flag pin.
@@ -340,6 +361,10 @@
 	&ax88180_device,
 #endif
 
+#if defined(CONFIG_USB_NET2272) || defined(CONFIG_USB_NET2272_MODULE)
+	&net2272_bfin_device,
+#endif
+
 #if defined(CONFIG_SPI_BFIN) || defined(CONFIG_SPI_BFIN_MODULE)
 	&bfin_spi0_device,
 #endif

Modified: branches/2008R1/drivers/usb/gadget/net2272.c (4209 => 4210)


--- branches/2008R1/drivers/usb/gadget/net2272.c	2008-02-01 12:24:17 UTC (rev 4209)
+++ branches/2008R1/drivers/usb/gadget/net2272.c	2008-02-01 14:42:21 UTC (rev 4210)
@@ -2585,13 +2585,6 @@
 
 	dev->enabled = 1;
 
-	// FIXME, hardcoding register base memory resource length to 0xF0!
-	if (!request_mem_region (base,
-				0xF0,  driver_name)) {
-		DEBUG (dev, "get request memory region!\n");
-		retval = -EBUSY;
-		goto done;
-	}
 	dev->base_addr = ioremap_nocache (base, 256);
 	if (!dev->base_addr) {
 		DEBUG (dev, "can't map memory\n");
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
http://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits

Reply via email to