OSS AUDIO: Use struct platform driver and compilation fix
PATCH 1/1 OSS AUDIO: Use struct platform driver and compilation fix
Tony,
Attached patch uses struct platform_driver and
used __SEMAPHORE_INIT(name,count) instead of DECLARE_MUTEX(), which is a non standard way.
---Komal Shah
http://komalshah.blogspot.com/
__________________________________
Start your day with Yahoo! - Make it your home page!
http://www.yahoo.com/r/hs
Subject: [PATCH 7/10] oss/omap-audio: Use struct platform_driver and compilation fix. Used __SEMAPHORE_INIT(name,count) instead of DECLARE_MUTEX().
---
sound/oss/omap-audio-aic23.c | 2 +- sound/oss/omap-audio-tsc2101.c | 2 +- sound/oss/omap-audio.c | 45 ++++++++++++++++++---------------------- 3 files changed, 22 insertions(+), 27 deletions(-)
applies-to: f405eb795bff80868491c667f8cf382c61f8a2be 7d7ae01634efe27fc1fba3a8b4f0064f2146837f
sound/oss/omap-audio-aic23.c +1 -1
@@ -224,7 +224,7 @@ static audio_state_t aic23_state = { .hw_remove = __exit_p(omap_aic23_remove), .hw_suspend = omap_aic23_suspend, .hw_resume = omap_aic23_resume, - .sem = __MUTEX_INITIALIZER(aic23_state.sem), + .sem = __SEMAPHORE_INIT(aic23_state.sem, 1), };/* This will be defined in the audio.h */
sound/oss/omap-audio-tsc2101.c +1 -1
@@ -311,7 +311,7 @@ static audio_state_t tsc2101_state = { .hw_remove = omap_tsc2101_remove, .hw_suspend = omap_tsc2101_suspend, .hw_resume = omap_tsc2101_resume, - .sem = __MUTEX_INITIALIZER(tsc2101_state.sem), + .sem = __SEMAPHORE_INIT(tsc2101_state.sem, 1), };/* This will be defined in the Audio.h */
sound/oss/omap-audio.c +20 -25
123 lines not on this page · raw message
---
0.99.9.GIT
Quoted 5 lines · Komal Shah
Tony,
Attached patch uses struct
platform_driverand
used__SEMAPHORE_INIT(name,count)instead ofDECLARE_MUTEX(), which is a non standard way.
Pushing today.
Tony