mfd: ab8500-core: Use 'ifdef' for config options
Subsystems (2)
PATCH 1/1 mfd: ab8500-core: Use 'ifdef' for config options
From: Fabio Estevam <[email protected]>
The config symbol 'CONFIG_DEBUG_FS' should be protected by a 'ifdef' instead of a plain 'if'.
Signed-off-by Fabio Estevam <[email protected]>
--- drivers/mfd/ab8500-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mfd/ab8500-core.c +1 -1
@@ -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;
Signature · 1 line
1.9.1
Lee Jones
AppliedQuoted 9 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
The config symbol '
CONFIG_DEBUG_FS' should be protected by a 'ifdef' instead of a plain 'if'.Signed-off-by Fabio Estevam <[email protected]>--- drivers/mfd/ab8500-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Applied, thanks.
Quoted 13 lines
drivers/mfd/ab8500-core.c +1
-1@@ -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;
Signature · 4 lines
Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog