Re: [PATCH] serial: Initialize spinlocks in 8250 and don't clobber them.

Alan Cox
2008-10-21T15:50:18Z

> The question is: What is the best way to initialize some (or all) fields of a structure *except* a single lock field that was previously initialized?

Move the initialisation - or at least memset to zero then spin_lock_init
and fill in the other fields later.