]> git.karo-electronics.de Git - karo-tx-linux.git/commit
m68knommu: fix FEC platform device registration when driver is modular
authorGreg Ungerer <gerg@uclinux.org>
Mon, 11 Jan 2016 00:07:49 +0000 (10:07 +1000)
committerGreg Ungerer <gerg@uclinux.org>
Mon, 7 Mar 2016 00:07:17 +0000 (10:07 +1000)
commitca6fafd183d6d687a7957e5328ecefc785f22a5a
treeca6d96f1dd6514eb55e43ce19cc007eab3926644
parentf6cede5b49e822ebc41a099fe41ab4989f64e2cb
m68knommu: fix FEC platform device registration when driver is modular

The FEC (Fast Ethernet Crontroller) module on many ColdFire parts can
be compiled into the kernel, or as a module. Therefore the platform device
support for it is required whenever the driver is enabled - not just when
built into the kernel. Use IS_ENABLED(CONFIG_FEC) instead of a conditional
check on only the driver being built into the kernel.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
arch/m68k/coldfire/device.c