]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: fec: remove useless conditional preprocessor directives
authorWei Fang <wei.fang@nxp.com>
Wed, 19 Nov 2025 02:51:44 +0000 (10:51 +0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 21 Nov 2025 02:40:06 +0000 (18:40 -0800)
commit3eea593b5597e580def9658aa6397e1057f27acd
tree454d19e4e18b69caa153051d4ce69141ecc7f096
parenta7687b292ef101b8fb21571eac418c90fab6f304
net: fec: remove useless conditional preprocessor directives

The conditional preprocessor directive was added to fix build errors on
the MCF5272 platform, see commit d13919301d9a ("net: fec: Fix build for
MCF5272"). The compilation errors were originally caused by some register
macros not being defined on that platform.

The driver now uses quirks to dynamically handle platform differences,
and for MCF5272, its quirks is 0, so it does not support RACC and GBIT
Ethernet. So these preprocessor directives are no longer required and
can be safely removed without causing build or functional issue.

Signed-off-by: Wei Fang <wei.fang@nxp.com>
Link: https://patch.msgid.link/20251119025148.2817602-2-wei.fang@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/freescale/fec_main.c