ARM: SAMSUNG: Make ADC client SMP safe
authorBen Dooks <ben-linux@fluff.org>
Mon, 10 May 2010 04:31:36 +0000 (13:31 +0900)
committerBen Dooks <ben-linux@fluff.org>
Thu, 20 May 2010 12:05:49 +0000 (21:05 +0900)
commit1f1f584c9a1dd234041573d2d1c42620b3966607
treeb05881c9a1eb9d7adeba78e9b48ddd9536b733ef
parent6a399547242df3b12f13d637a95f63eaa82f9385
ARM: SAMSUNG: Make ADC client SMP safe

Change local_irq disable calls to use spinlocks to ensure that the
ADC driver data is protected against multiple access..

Note, this does not protect the client's data, and the client should
ensure it does not make multiple calls to the ADC driver.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
arch/arm/plat-samsung/adc.c