From: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
To: barebox@lists.infradead.org
Subject: [PATCH] Documentation/porting.txt: switch to resoruce
Date: Wed, 3 Aug 2011 15:19:36 +0200 [thread overview]
Message-ID: <1312377576-19425-1-git-send-email-plagnioj@jcrosoft.com> (raw)
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
---
Documentation/porting.txt | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
diff --git a/Documentation/porting.txt b/Documentation/porting.txt
index ccfe598..80e35ae 100644
--- a/Documentation/porting.txt
+++ b/Documentation/porting.txt
@@ -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;
}
--
1.7.5.4
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next reply other threads:[~2011-08-03 13:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-03 13:19 Jean-Christophe PLAGNIOL-VILLARD [this message]
2011-08-03 14:15 ` Uwe Kleine-König
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1312377576-19425-1-git-send-email-plagnioj@jcrosoft.com \
--to=plagnioj@jcrosoft.com \
--cc=barebox@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox