git: 9978ade49804 - main - arm/arm64 qualcomm: Remove unused devclass arguments to DRIVER_MODULE.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 09 May 2022 21:47:52 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=9978ade4980452e3699285c01a4b9c4b5adc68e4 commit 9978ade4980452e3699285c01a4b9c4b5adc68e4 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-05-09 21:26:45 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-05-09 21:26:45 +0000 arm/arm64 qualcomm: Remove unused devclass arguments to DRIVER_MODULE. --- sys/arm/qualcomm/ipq4018_usb_hs_phy.c | 4 +--- sys/arm/qualcomm/ipq4018_usb_ss_phy.c | 4 +--- sys/arm64/qualcomm/qcom_gcc.c | 6 ++---- 3 files changed, 4 insertions(+), 10 deletions(-) diff --git a/sys/arm/qualcomm/ipq4018_usb_hs_phy.c b/sys/arm/qualcomm/ipq4018_usb_hs_phy.c index 8e03d2f27e6f..4d3d0d70a9a3 100644 --- a/sys/arm/qualcomm/ipq4018_usb_hs_phy.c +++ b/sys/arm/qualcomm/ipq4018_usb_hs_phy.c @@ -226,11 +226,9 @@ static device_method_t ipq4018_usb_hs_usbphy_methods[] = { DEVMETHOD_END }; -static devclass_t ipq4018_usb_hs_usbphy_devclass; static DEFINE_CLASS_0(ipq4018_usb_hs_usbphy, ipq4018_usb_hs_usbphy_driver, ipq4018_usb_hs_usbphy_methods, sizeof(struct ipq4018_usb_hs_phy_softc)); EARLY_DRIVER_MODULE(ipq4018_usb_hs_usbphy, simplebus, - ipq4018_usb_hs_usbphy_driver, - ipq4018_usb_hs_usbphy_devclass, NULL, NULL, + ipq4018_usb_hs_usbphy_driver, NULL, NULL, BUS_PASS_TIMER + BUS_PASS_ORDER_LAST); diff --git a/sys/arm/qualcomm/ipq4018_usb_ss_phy.c b/sys/arm/qualcomm/ipq4018_usb_ss_phy.c index 3fe6d8115975..ad7ff8a5ff44 100644 --- a/sys/arm/qualcomm/ipq4018_usb_ss_phy.c +++ b/sys/arm/qualcomm/ipq4018_usb_ss_phy.c @@ -206,11 +206,9 @@ static device_method_t ipq4018_usb_ss_usbphy_methods[] = { DEVMETHOD_END }; -static devclass_t ipq4018_usb_ss_usbphy_devclass; static DEFINE_CLASS_0(ipq4018_usb_ss_usbphy, ipq4018_usb_ss_usbphy_driver, ipq4018_usb_ss_usbphy_methods, sizeof(struct ipq4018_usb_ss_phy_softc)); EARLY_DRIVER_MODULE(ipq4018_usb_ss_usbphy, simplebus, - ipq4018_usb_ss_usbphy_driver, - ipq4018_usb_ss_usbphy_devclass, NULL, NULL, + ipq4018_usb_ss_usbphy_driver, NULL, NULL, BUS_PASS_TIMER + BUS_PASS_ORDER_LAST); diff --git a/sys/arm64/qualcomm/qcom_gcc.c b/sys/arm64/qualcomm/qcom_gcc.c index 34ff41ce42e6..a20758cc8633 100644 --- a/sys/arm64/qualcomm/qcom_gcc.c +++ b/sys/arm64/qualcomm/qcom_gcc.c @@ -141,8 +141,6 @@ static driver_t qcom_gcc_driver = { sizeof(struct qcom_gcc_softc), }; -static devclass_t qcom_gcc_devclass; - -EARLY_DRIVER_MODULE(qcom_gcc, simplebus, qcom_gcc_driver, qcom_gcc_devclass, - 0, 0, BUS_PASS_BUS + BUS_PASS_ORDER_MIDDLE); +EARLY_DRIVER_MODULE(qcom_gcc, simplebus, qcom_gcc_driver, 0, 0, + BUS_PASS_BUS + BUS_PASS_ORDER_MIDDLE); MODULE_VERSION(qcom_gcc, 1);