Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Apr 2016 23:10:12 +0800
From:      Howard Su <howard0su@gmail.com>
To:        freebsd-current@freebsd.org
Subject:   Mis-use of BUS_PASS_ORDER_MIDDLE
Message-ID:  <CAAvnz_rmbgM9t47eqV91ASXHddJjMyEucpF4_f-3Ed5pNoM8Bw@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
I noticed several places there are code like this, especially in some arm
low level drivers.
EARLY_DRIVER_MODULE(aw_ccu, simplebus, aw_ccu_driver, aw_ccu_devclass,
    0, 0, BUS_PASS_BUS + BUS_PASS_ORDER_MIDDLE);

=E2=80=8BI feel the usage of BUS_PASS_ORDER_MIDDLE is misused. There are an=
other
macro EARLY_DRIVER_MODULE_ORDERED, which take an additional parameter
"order". I believe BUS_PASS_ORDER_xxx is used for that parameter.
=E2=80=8B

--=20
-Howard



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAAvnz_rmbgM9t47eqV91ASXHddJjMyEucpF4_f-3Ed5pNoM8Bw>