[MTD] mtdoops: fix a bit of spin lock usage
authorAdrian Hunter <adrian.hunter@nokia.com>
Wed, 4 Mar 2009 07:53:40 +0000 (09:53 +0200)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Fri, 20 Mar 2009 18:39:25 +0000 (18:39 +0000)
commit48ec00ac895074f8a47bda8f3925ccaa46abb7a8
treeed31424afc0b44d209185ff24e0852d9e321f86d
parente2a0f25b4f520adbd82c0caafcde0470ed11053d
[MTD] mtdoops: fix a bit of spin lock usage

- do not leave spin lock locked
- initialise spin lock

Signed-off-by: Adrian Hunter <adrian.hunter@nokia.com>
Acked-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/mtd/mtdoops.c