Properly serialize ata_init with other threads. Fix a bug that always initialized...
commit63dd66afcff1badb9635a93051812dd864e74149
authorjethead71 <jethead71@a1c6a512-1295-4272-9138-f99709370657>
Fri, 18 Jan 2008 12:32:03 +0000 (18 12:32 +0000)
committerjethead71 <jethead71@a1c6a512-1295-4272-9138-f99709370657>
Fri, 18 Jan 2008 12:32:03 +0000 (18 12:32 +0000)
tree7cd2467638206b6e3aa167bd64cae85af5f1bcca
parente3d4c33b4f0031fa6b4b453fb6730503c3038244
Properly serialize ata_init with other threads. Fix a bug that always initialized the lock on every call to ata_init - that should be a one time init or else the lock could be corrupted on connect.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16104 a1c6a512-1295-4272-9138-f99709370657
firmware/drivers/ata.c
firmware/target/arm/sandisk/ata-c200_e200.c