HomeFreeBSD

enetc: Force correct order with DRIVER_MODULE_ORDERED

Description

enetc: Force correct order with DRIVER_MODULE_ORDERED

The toolchain can reorder symbols, meaning that changing
the order of DRIVER_MODULE macros is not enough
to ensure that miibus gets registered first.
Use DRIVER_MODULE_ORDERED instead to fix the problem properly.

Fixes: 5ad6d28cbe6b ("enetc: Support building the driver as a loadable module.")

Reported by: jhb

Details

Provenance
kdAuthored on Aug 5 2021, 12:09 PM
mwCommitted on Aug 8 2021, 8:27 PM
Parents
rG5f2fe88377b1: felix: Add autogenerated files to Makefile
Branches
Unknown
Tags
Unknown