Thread (2 messages) 2 messages, 2 authors, 2012-08-20

Re: [PATCH 5/6] ARM: integrator: convert AMBA devices to device tree

From: Linus Walleij <hidden>
Date: 2012-08-18 22:42:12
Also in: linux-arm-kernel

Possibly related (same subject, not in this thread)

On Thu, Aug 16, 2012 at 2:40 PM, Jean-Christophe PLAGNIOL-VILLARD
[off-list ref] wrote:
On 14:16 Thu 16 Aug     , Linus Walleij wrote:
quoted
+/* For the Device Tree, add in the UART callbacks as AUXDATA */
+static struct of_dev_auxdata ap_auxdata_lookup[] __initdata = {
+     OF_DEV_AUXDATA("arm,primecell", INTEGRATOR_RTC_BASE,
+             "rtc", NULL),
+     OF_DEV_AUXDATA("arm,primecell", INTEGRATOR_UART0_BASE,
+             "uart0", &integrator_uart_data),
+     OF_DEV_AUXDATA("arm,primecell", INTEGRATOR_UART1_BASE,
+             "uart1", &integrator_uart_data),
+     OF_DEV_AUXDATA("arm,primecell", KMI0_BASE,
+             "kmi0", NULL),
+     OF_DEV_AUXDATA("arm,primecell", KMI1_BASE,
+             "kmi1", NULL),
+     { /* sentinel */ },
why that?
Based on similar code by Grant in arch/arm/mach-versatile/core.c
also ending with a {}. Also at other places ... I though this terminated
the list iteration, is it not needed anymore?

Yours,
Linus Walleij
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help