diff mbox

[1/1] staging: ozwpan: Include oz_events_clear() conditionally

Message ID 1353401818-13967-1-git-send-email-sachin.kamat@linaro.org
State Accepted
Headers show

Commit Message

Sachin Kamat Nov. 20, 2012, 8:56 a.m. UTC
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>
---
 drivers/staging/ozwpan/ozevent.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Comments

Rupesh Gujare Nov. 20, 2012, 10:38 a.m. UTC | #1
On 20/11/12 08:56, Sachin Kamat wrote:
> 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>
> ---
>   drivers/staging/ozwpan/ozevent.c |    2 +-
>   1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/staging/ozwpan/ozevent.c b/drivers/staging/ozwpan/ozevent.c
> index a48498b..50578ba 100644
> --- a/drivers/staging/ozwpan/ozevent.c
> +++ b/drivers/staging/ozwpan/ozevent.c
> @@ -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
>    */

Acked-by: Rupesh Gujare<rgujare@ozmodevices.com>
diff mbox

Patch

diff --git a/drivers/staging/ozwpan/ozevent.c b/drivers/staging/ozwpan/ozevent.c
index a48498b..50578ba 100644
--- a/drivers/staging/ozwpan/ozevent.c
+++ b/drivers/staging/ozwpan/ozevent.c
@@ -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
  */