* [PATCH] mfd: ab8500-core: Use 'ifdef' for config options
@ 2014-07-30 1:29 Fabio Estevam
2014-07-30 7:25 ` Lee Jones
0 siblings, 1 reply; 2+ messages in thread
From: Fabio Estevam @ 2014-07-30 1:29 UTC (permalink / raw)
To: lee.jones; +Cc: linus.walleij, linux-kernel, Fabio Estevam
From: Fabio Estevam <fabio.estevam@freescale.com>
The config symbol 'CONFIG_DEBUG_FS' should be protected by a 'ifdef' instead
of a plain 'if'.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
drivers/mfd/ab8500-core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mfd/ab8500-core.c b/drivers/mfd/ab8500-core.c
index ce48aa7..bde2fc0 100644
--- a/drivers/mfd/ab8500-core.c
+++ b/drivers/mfd/ab8500-core.c
@@ -1754,7 +1754,7 @@ static int ab8500_probe(struct platform_device *pdev)
if (ret)
return ret;
-#if CONFIG_DEBUG_FS
+#ifdef CONFIG_DEBUG_FS
/* Pass to debugfs */
ab8500_debug_resources[0].start = ab8500->irq;
ab8500_debug_resources[0].end = ab8500->irq;
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] mfd: ab8500-core: Use 'ifdef' for config options
2014-07-30 1:29 [PATCH] mfd: ab8500-core: Use 'ifdef' for config options Fabio Estevam
@ 2014-07-30 7:25 ` Lee Jones
0 siblings, 0 replies; 2+ messages in thread
From: Lee Jones @ 2014-07-30 7:25 UTC (permalink / raw)
To: Fabio Estevam; +Cc: linus.walleij, linux-kernel, Fabio Estevam
On Tue, 29 Jul 2014, Fabio Estevam wrote:
> From: Fabio Estevam <fabio.estevam@freescale.com>
>
> The config symbol 'CONFIG_DEBUG_FS' should be protected by a 'ifdef' instead
> of a plain 'if'.
>
> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
> ---
> drivers/mfd/ab8500-core.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Applied, thanks.
> diff --git a/drivers/mfd/ab8500-core.c b/drivers/mfd/ab8500-core.c
> index ce48aa7..bde2fc0 100644
> --- a/drivers/mfd/ab8500-core.c
> +++ b/drivers/mfd/ab8500-core.c
> @@ -1754,7 +1754,7 @@ static int ab8500_probe(struct platform_device *pdev)
> if (ret)
> return ret;
>
> -#if CONFIG_DEBUG_FS
> +#ifdef CONFIG_DEBUG_FS
> /* Pass to debugfs */
> ab8500_debug_resources[0].start = ab8500->irq;
> ab8500_debug_resources[0].end = ab8500->irq;
--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-07-30 7:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-30 1:29 [PATCH] mfd: ab8500-core: Use 'ifdef' for config options Fabio Estevam
2014-07-30 7:25 ` Lee Jones
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox