提交 43f971eb 编写于 作者: S Sachin Kamat 提交者: Greg Kroah-Hartman

staging: ozwpan: Include oz_events_clear() conditionally

oz_events_clear() is referenced only when CONFIG_DEBUG_FS is defined.
Move the definition too under this flag.
Signed-off-by: NSachin Kamat <sachin.kamat@linaro.org>
Acked-by: NRupesh Gujare <rgujare@ozmodevices.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 3ce14acb
......@@ -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;
......@@ -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
*/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册