Skip to contentSkip to conversation

Documentation/porting.txt: switch to resoruce

PATCH In review Jean-Christophe PLAGNIOL-VILLARD 2 participants 2 messages Aug 3, 2011 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Documentation/porting.txt: switch to resoruce

---
 Documentation/porting.txt |    9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)
Documentation/porting.txt +2 -7
index ccfe598..80e35ae 100644
@@ -32,15 +32,10 @@ extra-y += barebox.lds
   To see anything you have to at least register a console. In scb9328.c this
   looks like this:
 
-	static struct device_d scb9328_serial_device = {
-		.name     = "imx_serial",
-		.map_base = IMX_UART1_BASE,
-		.size     = 4096,
-	};
-
 	static int scb9328_console_init(void)
 	{
-		register_device(&scb9328_serial_device);
+		add_generic_device("imx_serial", -1, NULL, IMX_UART1_BASE, SZ_4K,
+				   IORESOURCE_MEM, NULL);
 		return 0;
 	}
 
Signature · 7 lines
1.7.5.4


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#1 lore raw

$Subject ~= s/resoruce/resource/

Best regards
Uwe

Signature · 7 lines
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox