Skip to content

Commit

Permalink
smc911x: Fix undefined CONFIG_ symbol warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Peter Korsgaard authored and Jeff Garzik committed Nov 24, 2007
1 parent 3defd0e commit d0c4581
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/smc911x.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d0c4581

Please sign in to comment.