Skip to content

Commit

Permalink
staging: ozwpan: Include oz_events_clear() conditionally
Browse files Browse the repository at this point in the history
oz_events_clear() is referenced only when CONFIG_DEBUG_FS is defined.
Move the definition too under this flag.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Acked-by: Rupesh Gujare <rgujare@ozmodevices.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Sachin Kamat authored and Greg Kroah-Hartman committed Nov 21, 2012
1 parent 3ce14ac commit 43f971e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/ozwpan/ozevent.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ void oz_event_log2(u8 evt, u8 ctx1, u16 ctx2, void *ctx3, unsigned ctx4)
/*------------------------------------------------------------------------------
* Context: process
*/
#ifdef CONFIG_DEBUG_FS
static void oz_events_clear(struct oz_evtdev *dev)
{
unsigned long irqstate;
Expand All @@ -88,7 +89,6 @@ static void oz_events_clear(struct oz_evtdev *dev)
dev->missed_events = 0;
spin_unlock_irqrestore(&dev->lock, irqstate);
}
#ifdef CONFIG_DEBUG_FS
/*------------------------------------------------------------------------------
* Context: process
*/
Expand Down

0 comments on commit 43f971e

Please sign in to comment.