On Thu, May 24, 2012 at 2:50 AM, Michael Schmitz <schmitz@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
diff --git a/drivers/net/ethernet/8390/Makefile b/drivers/net/ethernet/8390/Makefile index 8513e8d..f1ef3b8 100644 --- a/drivers/net/ethernet/8390/Makefile +++ b/drivers/net/ethernet/8390/Makefile @@ -6,6 +6,7 @@ obj-$(CONFIG_MAC8390) += mac8390.o obj-$(CONFIG_AC3200) += ac3200.o 8390.o obj-$(CONFIG_APNE) += apne.o 8390.o obj-$(CONFIG_ARM_ETHERH) += etherh.o +obj-$(CONFIG_ATARI_ETHERNEC) += ne.o 8390p.o
This duplicates the line for CONFIG_NE2000. You can remove it, if you make CONFIG_NE2000 selectable on Atari (see below).
obj-$(CONFIG_ATARI_ETHERNEC_OLD) += atari_ethernec.o 8390.o obj-$(CONFIG_AX88796) += ax88796.o obj-$(CONFIG_E2100) += e2100.o 8390.o
diff --git a/drivers/net/ethernet/8390/Kconfig b/drivers/net/ethernet/8390/Kconfig index 4501c75..3a03d50 100644 --- a/drivers/net/ethernet/8390/Kconfig +++ b/drivers/net/ethernet/8390/Kconfig @@ -223,6 +223,17 @@ config APNE To compile this driver as a module, choose M here: the module will be called apne. +config ATARI_ETHERNEC + tristate "Atari EtherNEC Ethernet support"
I would make this bool, and move this section to arch/m68k/Kconfig.devices. Then CONFIG_ATARI_ETHERNEC can control the creation of the platform devices. After that, you still need a way to make CONFIG_NE2000 selectable. E.g. in drivers/net/ethernet/8390/Kconfig: config NE2000 tristate "NE2000/NE1000 support" - depends on (ISA || (Q40 && m) || M32R || MACH_TX49XX) + depends on (ISA || (Q40 && m) || M32R || MACH_TX49XX || ATARI_ETHERNEC) Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds -- To unsubscribe from this list: send the line "unsubscribe linux-m68k" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html