From nobody Mon May 09 19:23:21 2022 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 170C41AC405E; Mon, 9 May 2022 19:23:23 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KxrgG12Czz3pQG; Mon, 9 May 2022 19:23:22 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652124202; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=2DlAzvERIQqCusXoG0njRO9rD8kudBWZnnNu3eQolbU=; b=aQ5x5wNyzRqLaqGON1d5y8JZ/zXICLhS9nLg8DuWYGGa1uGAS+VBQR3z/lZ32v5R6BvkLq qsCroLTRtqBdW5Tz+LCH5bQGnMLTCdQ8VHVjc+DmJXlrgMYg8Yw1HmnjPFh5xDJ5FRRDLM 5jdLgTAPlvLsX7yh/cf8yea0EzeCET7aHh+TWRR8U+GL46aepk5Flg3+oFlM4F8UcIVdFm J7N7kQv7op5exglpjtyUxvtzf6d2w5+Z0nCJ12X8jo2Qn2u74nzedcOqZzk9AMMOIl2eQA olPMPJ10ol0kVytXKnZfHVBX8NDol5Xdepciz5AHPE3fAj/3j35/gu5Jx2R3SA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id DB56D17023; Mon, 9 May 2022 19:23:21 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 249JNLb8086077; Mon, 9 May 2022 19:23:21 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 249JNLSv086076; Mon, 9 May 2022 19:23:21 GMT (envelope-from git) Date: Mon, 9 May 2022 19:23:21 GMT Message-Id: <202205091923.249JNLSv086076@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: 024d94736296 - main - pwm: Remove unused devclass arguments to DRIVER_MODULE. List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 024d94736296546e643fc90868303d1b592cfef2 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652124202; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=2DlAzvERIQqCusXoG0njRO9rD8kudBWZnnNu3eQolbU=; b=Vt4awpcxtM33ToNvKez/yTjYhk7RJVUMZHuKsB7XB7gjUbDSfbJoyYQAS/TNSccyEtAOLE XFLuOuj7IO4NAo7pdkOnAvdGpmy3tSSY4ygrM22dHTWvqbqb4riCR82EWD5LAeBCROp1HO mVkbaA+VfdB576OT8IiCfj013TZ92hVnxnKrrT1dfVvbWYOKDA21EjA9r9biFkszY5gvaU KQe7AU1FZJr3O52tdWmi67ze0fo09YOOyub+iGJIeaMhlVJrRBvoqJSNPVOk9YnIxy1R1U ouTZClXoFp6X2+yraFNWl9zqu15/9scNDkl1ZcBJT//UhYvRxAbLuRj/YCkEcg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1652124202; a=rsa-sha256; cv=none; b=o0TB0GoEtkuqrn9SImiZrQxWv/f7nqSfHOH72ghp3GRYl+DQ6rmOh0zoLfwexSmgfr/xDT KUUKbrfRT8xHax/fcOTMdic2HrQcha32EILfxdrZ282c3GrfzBi8xjoRMnUHARPpVMW5ip tmAWPm1znkysFLjGUKyS97FVpnowWTelyw5UzBVs3F4Se6vtobDFgP6xRu9uYxmyE2OED4 QW50puyUdnZbQRVJD+y9IPlIHvLOhjy/75sU0rpCVonAB+pHkxgvoWlDzyYTnFQxjumPZO i55+bi/jkCEFigyKTZVf0TQAb+2YUmAfM19XeIERGqrH/ImhWpmAgwHzDf9qQQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=024d94736296546e643fc90868303d1b592cfef2 commit 024d94736296546e643fc90868303d1b592cfef2 Author: John Baldwin AuthorDate: 2022-05-09 19:22:03 +0000 Commit: John Baldwin CommitDate: 2022-05-09 19:22:03 +0000 pwm: Remove unused devclass arguments to DRIVER_MODULE. --- sys/dev/pwm/ofw_pwmbus.c | 6 ++---- sys/dev/pwm/pwm_backlight.c | 4 +--- sys/dev/pwm/pwmbus.c | 5 ++--- sys/dev/pwm/pwmbus.h | 2 -- sys/dev/pwm/pwmc.c | 3 +-- 5 files changed, 6 insertions(+), 14 deletions(-) diff --git a/sys/dev/pwm/ofw_pwmbus.c b/sys/dev/pwm/ofw_pwmbus.c index 4a961c39e4d3..267e3d7a0906 100644 --- a/sys/dev/pwm/ofw_pwmbus.c +++ b/sys/dev/pwm/ofw_pwmbus.c @@ -213,11 +213,9 @@ static device_method_t ofw_pwmbus_methods[] = { DEVMETHOD_END }; -devclass_t ofw_pwmbus_devclass; - DEFINE_CLASS_1(pwmbus, ofw_pwmbus_driver, ofw_pwmbus_methods, sizeof(struct pwmbus_softc), pwmbus_driver); -EARLY_DRIVER_MODULE(ofw_pwmbus, pwm, ofw_pwmbus_driver, ofw_pwmbus_devclass, - 0, 0, BUS_PASS_BUS + BUS_PASS_ORDER_MIDDLE); +EARLY_DRIVER_MODULE(ofw_pwmbus, pwm, ofw_pwmbus_driver, 0, 0, + BUS_PASS_BUS + BUS_PASS_ORDER_MIDDLE); MODULE_VERSION(ofw_pwmbus, 1); MODULE_DEPEND(ofw_pwmbus, pwmbus, 1, 1, 1); diff --git a/sys/dev/pwm/pwm_backlight.c b/sys/dev/pwm/pwm_backlight.c index 3a6ec7f61fec..d1ec31721cf1 100644 --- a/sys/dev/pwm/pwm_backlight.c +++ b/sys/dev/pwm/pwm_backlight.c @@ -304,9 +304,7 @@ driver_t pwm_backlight_driver = { pwm_backlight_methods, sizeof(struct pwm_backlight_softc), }; -devclass_t pwm_backlight_devclass; -DRIVER_MODULE(pwm_backlight, simplebus, pwm_backlight_driver, - pwm_backlight_devclass, 0, 0); +DRIVER_MODULE(pwm_backlight, simplebus, pwm_backlight_driver, 0, 0); MODULE_DEPEND(pwm_backlight, backlight, 1, 1, 1); OFWBUS_PNP_INFO(compat_data); diff --git a/sys/dev/pwm/pwmbus.c b/sys/dev/pwm/pwmbus.c index 4c818074f68c..51857d26b7f5 100644 --- a/sys/dev/pwm/pwmbus.c +++ b/sys/dev/pwm/pwmbus.c @@ -277,8 +277,7 @@ driver_t pwmbus_driver = { pwmbus_methods, sizeof(struct pwmbus_softc), }; -devclass_t pwmbus_devclass; -EARLY_DRIVER_MODULE(pwmbus, pwm, pwmbus_driver, pwmbus_devclass, 0, 0, - BUS_PASS_BUS + BUS_PASS_ORDER_MIDDLE); +EARLY_DRIVER_MODULE(pwmbus, pwm, pwmbus_driver, 0, 0, + BUS_PASS_BUS + BUS_PASS_ORDER_MIDDLE); MODULE_VERSION(pwmbus, 1); diff --git a/sys/dev/pwm/pwmbus.h b/sys/dev/pwm/pwmbus.h index 7ace2ef41b1b..251a856bc521 100644 --- a/sys/dev/pwm/pwmbus.h +++ b/sys/dev/pwm/pwmbus.h @@ -66,8 +66,6 @@ PWMBUS_ACCESSOR(channel, CHANNEL, u_int) #endif extern driver_t pwmbus_driver; -extern devclass_t pwmbus_devclass; extern driver_t ofw_pwmbus_driver; -extern devclass_t ofw_pwmbus_devclass; #endif /* _PWMBUS_H_ */ diff --git a/sys/dev/pwm/pwmc.c b/sys/dev/pwm/pwmc.c index b2f12add3e2b..06a28cc4cae7 100644 --- a/sys/dev/pwm/pwmc.c +++ b/sys/dev/pwm/pwmc.c @@ -216,8 +216,7 @@ static driver_t pwmc_driver = { pwmc_methods, sizeof(struct pwmc_softc), }; -static devclass_t pwmc_devclass; -DRIVER_MODULE(pwmc, pwmbus, pwmc_driver, pwmc_devclass, 0, 0); +DRIVER_MODULE(pwmc, pwmbus, pwmc_driver, 0, 0); MODULE_DEPEND(pwmc, pwmbus, 1, 1, 1); MODULE_VERSION(pwmc, 1);