[U-Boot-Users] [PATCH] net: smc911x: Fix can not compile smc911x

Jens Gehrlein sew_s at tqs.de
Mon Jun 30 12:04:04 CEST 2008


Hi Nobuhiro,

Nobuhiro Iwamatsu schrieb:
> When enable CONFIG_DRIVER_SMC911X_16_BIT in smc911x, can not compile it.
> I revised it from "elif" preprocessor to "elif defined".

You are right. It depends on if one writes
#define NAME
or
#define NAME 1

"#elif" and "#elif defined" behave different then.
Probably, I only tested with the "number"-version.

Thank you for catching this.

Best Regards,
Jens




More information about the U-Boot mailing list