[U-Boot] [PATCH] devices: Use list_add_tail() instead of list_add() to register a device

Wolfgang Denk wd at denx.de
Fri Sep 5 13:30:43 CEST 2008


Dear Stefan Roese,

In message <1220604466-22538-1-git-send-email-sr at denx.de> you wrote:
> This patch fixes a problem spotted on Glacier/Canyonlands (and most
> likely lots of other board ports), that no serial output was seen
> after console initialization in console_init_r(). This is because the
> last added console device was used instead of the first added.
> 
> This patch fixes this problem by using list_add_tail() instead of
> list_add() to register a device. This way the first added console
> is used again.
> 
> Signed-off-by: Stefan Roese <sr at denx.de>
> ---
>  common/devices.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)

Thanks, applied.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"Pardon me for breathing, which I never do anyway so I don't know why
I bother to say it, oh God, I'm so depressed. Here's another of those
self-satisfied doors. Life! Don't talk to me about life."
                                        - Marvin the Paranoid Android


More information about the U-Boot mailing list