projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3defd0e
)
smc911x: Fix undefined CONFIG_ symbol warning
author
Peter Korsgaard
<jacmet@sunsite.dk>
Wed, 21 Nov 2007 14:28:06 +0000
(15:28 +0100)
committer
Jeff Garzik
<jeff@garzik.org>
Sat, 24 Nov 2007 03:09:00 +0000
(22:09 -0500)
elif defined(CONFIG_*) should be used instead of elif CONFIG_*
so GCC doesn't give warnings about undefined symbols when the config
option is disabled.
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/smc911x.h
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/smc911x.h
b/drivers/net/smc911x.h
index 16a0edc078fd370b7995d98cbe331aff8cc26785..d04e4fa35206b888d1d65e724d2baf38af1dd3c9 100644
(file)
--- a/
drivers/net/smc911x.h
+++ b/
drivers/net/smc911x.h
@@
-37,7
+37,7
@@
#define SMC_USE_16BIT 0
#define SMC_USE_32BIT 1
#define SMC_IRQ_SENSE IRQF_TRIGGER_FALLING
-#elif
CONFIG_SH_MAGIC_PANEL_R2
+#elif
defined(CONFIG_SH_MAGIC_PANEL_R2)
#define SMC_USE_SH_DMA 0
#define SMC_USE_16BIT 0
#define SMC_USE_32BIT 1