linux-mips
[Top] [All Lists]

Re: [PATCH 4/5] MIPS: BCM63XX: add RNG driver platform_device stub

To: Florian Fainelli <florian@openwrt.org>
Subject: Re: [PATCH 4/5] MIPS: BCM63XX: add RNG driver platform_device stub
From: Sergei Shtylyov <sshtylyov@mvista.com>
Date: Sat, 10 Dec 2011 18:46:49 +0400
Cc: Matt Mackall <mpm@selenic.com>, Herbert Xu <herbert@gondor.apana.org.au>, ralf@linux-mips.org, linux-mips@linux-mips.org
In-reply-to: <1323457270-16330-5-git-send-email-florian@openwrt.org>
References: <1323457270-16330-1-git-send-email-florian@openwrt.org> <1323457270-16330-5-git-send-email-florian@openwrt.org>
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20111105 Thunderbird/8.0
Hello.

On 09-12-2011 23:01, Florian Fainelli wrote:

Signed-off-by: Florian Fainelli<florian@openwrt.org>
[...]

diff --git a/arch/mips/bcm63xx/dev-trng.c b/arch/mips/bcm63xx/dev-trng.c
new file mode 100644
index 0000000..19ccfbf
--- /dev/null
+++ b/arch/mips/bcm63xx/dev-trng.c
@@ -0,0 +1,40 @@
[...]
+static struct resource trng_resources[] = {
+       {
+               .start          = -1, /* filled at runtime */
+               .end            = -1, /* filled at runtime */
+               .flags          = IORESOURCE_MEM,
+       },
+};
+
+static struct platform_device bcm63xx_trng_device = {
+       .name           = "bcm63xx-trng",
+       .id             = 0,

   Why not -1? Isn't there only single device of this sort?

WBR, Sergei

<Prev in Thread] Current Thread [Next in Thread>