ocp_uart.c allocates private space with ocp_alloc_dev, but never uses it. diff -urN /home/dgibson/kernel/linuxppc_2_4_devel/arch/ppc/kernel/ocp_uart.c linux-grinch/arch/ppc/kernel/ocp_uart.c --- /home/dgibson/kernel/linuxppc_2_4_devel/arch/ppc/kernel/ocp_uart.c Wed Jun 19 10:32:59 2002 +++ linux-grinch/arch/ppc/kernel/ocp_uart.c Thu Jun 20 17:32:57 2002 @@ -99,7 +99,7 @@ int curr_uart = 0;
while (curr_uart != -ENXIO) { - if (!(uart_drv = ocp_alloc_dev(sizeof (struct serial_struct)))) + if (!(uart_drv = ocp_alloc_dev(0))) return -ENOMEM; uart_drv->type = UART; /* this returns the next uart number */ -- David Gibson | For every complex problem there is a david at gibson.dropbear.id.au | solution which is simple, neat and | wrong. -- H.L. Mencken http://www.ozlabs.org/people/dgibson ** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/