From nobody Fri May 06 23:24:40 2022 X-Original-To: dev-commits-src-all@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 578261ACFD61; Fri, 6 May 2022 23:24:41 +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 4Kw694644Lz3FD9; Fri, 6 May 2022 23:24:40 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1651879481; 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=9J/zhbZZlf1dm2XVXFJjYtS399Rsc0eP+6CPMg27CRQ=; b=UQjqpS4s9itlL/Ybd/h49U5+AYDOQiJhZ1/oQq4lM54wKJ33ugg+S0A2mSe9nJAihX8fte Gy5sHnCtfB5EGxnXP/Fdq+PEM0Dx41gY5Re6JoyGGjbP+lDxnNnhoj0EYvHQImhQdodKDM mA2Dki2zaDz5nM2ltK3TZXYzXqMnKUQMuV7oiarfdNNOnAx7iDtcqq2DhsBfWAxfoZDRWq 9sq4SlkKZs57Qi77/80Dd8BUnCi0t17mv1HSo0yvik1S49nCp3PE7L21MkxCovFM0y4CFJ lGFyyCN4QwLXBlVpEd2TF7TNhjcSEWst4r0AbhZNRJTDZV9UnoMKTXHMCwGJNw== 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 8D29F24CFB; Fri, 6 May 2022 23:24:40 +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 246NOeWH074855; Fri, 6 May 2022 23:24:40 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 246NOemu074854; Fri, 6 May 2022 23:24:40 GMT (envelope-from git) Date: Fri, 6 May 2022 23:24:40 GMT Message-Id: <202205062324.246NOemu074854@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: 6d5880906ecc - main - ppbus/ppc: Remove unused devclass arguments to DRIVER_MODULE. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@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: 6d5880906ecc768646ba7b0cbaba4babc27a44d8 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1651879481; 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=9J/zhbZZlf1dm2XVXFJjYtS399Rsc0eP+6CPMg27CRQ=; b=VFPEIv2TZyUi07wQTYmsk70lNe5Ktlj+FsVEKYNwKiADVjIkqNqXJkzhY1j7/ExN9huASW uYjnxumO/UZsPjvluTxOAtBcdsV0zwNfUcZIeKO/zB4mX+m82HYqdv8Cjgqo065ZfICU25 DWWIoDeBR5FxCFuNgyXDBB/I/t31DNv71eob4twPXa9Xj6XyJQJXpNf6Uq/eiLUe7L5n6f +JIoEFCX3hx9PX287ing6+MEEyF2SYfFtyndq3jJTNaeRyld91lckyQT2fFZWskJlbg5jj AZIm1nTAjNd/eJsg0oB5bhcWgfJHeDh73+n9mOe3H47ccnhc2ELncsTCa/kCJw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1651879481; a=rsa-sha256; cv=none; b=Bo+j1IeIC5Yr/1twM2ib9a0GRksNNT9uZ+bEUsyQ/RBjtkV90f3EDIW8fmvmDeENle/O61 ZFf3z8dogWaFHo3aWFhwpAVeUxS8vxRmR3I7S0MQTIoSWrQwQzhTB66f71j5CqtHT7rvRA IfqpH7dCLJRwjz4efEXmqusFYmeCNRMFKWX0i5lgns9nl0qcHcW1vkXV3U2Ub+D5lPntJ0 YyC/+UY87hDS44Iknac2Spi3bkKe3wrou1rf5nRljSs49DvcpcI+7JGeXjw4je1mfYMWCf 0DYiRGEF/eWj+OPvxdPJmGXRWXg2vJlUgvi7dFAPXXHK6c66VZNCIXILhnMLNg== 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=6d5880906ecc768646ba7b0cbaba4babc27a44d8 commit 6d5880906ecc768646ba7b0cbaba4babc27a44d8 Author: John Baldwin AuthorDate: 2022-05-06 22:46:55 +0000 Commit: John Baldwin CommitDate: 2022-05-06 22:46:55 +0000 ppbus/ppc: Remove unused devclass arguments to DRIVER_MODULE. --- sys/dev/ppbus/if_plip.c | 4 +--- sys/dev/ppbus/lpbb.c | 4 +--- sys/dev/ppbus/lpt.c | 4 +--- sys/dev/ppbus/pcfclock.c | 4 +--- sys/dev/ppbus/ppbconf.c | 5 ++--- sys/dev/ppbus/ppi.c | 5 ++--- sys/dev/ppbus/pps.c | 5 ++--- sys/dev/ppc/ppc.c | 1 - sys/dev/ppc/ppc_acpi.c | 2 +- sys/dev/ppc/ppc_isa.c | 2 +- sys/dev/ppc/ppc_pci.c | 2 +- sys/dev/ppc/ppc_puc.c | 2 +- sys/dev/ppc/ppcvar.h | 1 - 13 files changed, 14 insertions(+), 27 deletions(-) diff --git a/sys/dev/ppbus/if_plip.c b/sys/dev/ppbus/if_plip.c index 21307ff89b64..e92896e9421f 100644 --- a/sys/dev/ppbus/if_plip.c +++ b/sys/dev/ppbus/if_plip.c @@ -185,8 +185,6 @@ static int lp_module_handler(module_t, int, void *); #define DEVTOSOFTC(dev) \ ((struct lp_data *)device_get_softc(dev)) -static devclass_t lp_devclass; - static int lp_module_handler(module_t mod, int what, void *arg) { @@ -849,5 +847,5 @@ static driver_t lp_driver = { sizeof(struct lp_data), }; -DRIVER_MODULE(plip, ppbus, lp_driver, lp_devclass, lp_module_handler, 0); +DRIVER_MODULE(plip, ppbus, lp_driver, lp_module_handler, NULL); MODULE_DEPEND(plip, ppbus, 1, 1, 1); diff --git a/sys/dev/ppbus/lpbb.c b/sys/dev/ppbus/lpbb.c index 984ea2e170c6..0d7e52932f35 100644 --- a/sys/dev/ppbus/lpbb.c +++ b/sys/dev/ppbus/lpbb.c @@ -238,8 +238,6 @@ lpbb_reset(device_t dev, u_char speed, u_char addr, u_char * oldaddr) return (IIC_ENOADDR); } -static devclass_t lpbb_devclass; - static device_method_t lpbb_methods[] = { /* device interface */ DEVMETHOD(device_identify, lpbb_identify), @@ -263,7 +261,7 @@ static driver_t lpbb_driver = { 1, }; -DRIVER_MODULE(lpbb, ppbus, lpbb_driver, lpbb_devclass, 0, 0); +DRIVER_MODULE(lpbb, ppbus, lpbb_driver, 0, 0); DRIVER_MODULE(iicbb, lpbb, iicbb_driver, 0, 0); MODULE_DEPEND(lpbb, ppbus, 1, 1, 1); MODULE_DEPEND(lpbb, iicbb, IICBB_MINVER, IICBB_PREFVER, IICBB_MAXVER); diff --git a/sys/dev/ppbus/lpt.c b/sys/dev/ppbus/lpt.c index f87a05e1fcbf..e01aaa5494ae 100644 --- a/sys/dev/ppbus/lpt.c +++ b/sys/dev/ppbus/lpt.c @@ -149,8 +149,6 @@ static int lpt_detect(device_t dev); static void lptintr(void *arg); -static devclass_t lpt_devclass; - /* bits for state */ #define OPEN (1<<0) /* device is open */ #define ASLP (1<<1) /* awaiting draining of printer */ @@ -996,5 +994,5 @@ static driver_t lpt_driver = { sizeof(struct lpt_data), }; -DRIVER_MODULE(lpt, ppbus, lpt_driver, lpt_devclass, 0, 0); +DRIVER_MODULE(lpt, ppbus, lpt_driver, 0, 0); MODULE_DEPEND(lpt, ppbus, 1, 1, 1); diff --git a/sys/dev/ppbus/pcfclock.c b/sys/dev/ppbus/pcfclock.c index 05285573ef95..ee868976493d 100644 --- a/sys/dev/ppbus/pcfclock.c +++ b/sys/dev/ppbus/pcfclock.c @@ -58,8 +58,6 @@ struct pcfclock_data { struct cdev *cdev; }; -static devclass_t pcfclock_devclass; - static d_open_t pcfclock_open; static d_close_t pcfclock_close; static d_read_t pcfclock_read; @@ -334,4 +332,4 @@ static driver_t pcfclock_driver = { sizeof(struct pcfclock_data), }; -DRIVER_MODULE(pcfclock, ppbus, pcfclock_driver, pcfclock_devclass, 0, 0); +DRIVER_MODULE(pcfclock, ppbus, pcfclock_driver, 0, 0); diff --git a/sys/dev/ppbus/ppbconf.c b/sys/dev/ppbus/ppbconf.c index 0c58e69e5909..100145708839 100644 --- a/sys/dev/ppbus/ppbconf.c +++ b/sys/dev/ppbus/ppbconf.c @@ -575,8 +575,6 @@ ppb_release_bus(device_t bus, device_t dev) return (0); } -static devclass_t ppbus_devclass; - static device_method_t ppbus_methods[] = { /* device interface */ DEVMETHOD(device_probe, ppbus_probe), @@ -600,4 +598,5 @@ static driver_t ppbus_driver = { ppbus_methods, sizeof(struct ppb_data), }; -DRIVER_MODULE(ppbus, ppc, ppbus_driver, ppbus_devclass, 0, 0); + +DRIVER_MODULE(ppbus, ppc, ppbus_driver, 0, 0); diff --git a/sys/dev/ppbus/ppi.c b/sys/dev/ppbus/ppi.c index 3c467f10c055..4374e2284098 100644 --- a/sys/dev/ppbus/ppi.c +++ b/sys/dev/ppbus/ppi.c @@ -82,8 +82,6 @@ struct ppi_data { #define DEVTOSOFTC(dev) \ ((struct ppi_data *)device_get_softc(dev)) -static devclass_t ppi_devclass; - #ifdef PERIPH_1284 static void ppiintr(void *arg); #endif @@ -616,5 +614,6 @@ static driver_t ppi_driver = { ppi_methods, sizeof(struct ppi_data), }; -DRIVER_MODULE(ppi, ppbus, ppi_driver, ppi_devclass, 0, 0); + +DRIVER_MODULE(ppi, ppbus, ppi_driver, 0, 0); MODULE_DEPEND(ppi, ppbus, 1, 1, 1); diff --git a/sys/dev/ppbus/pps.c b/sys/dev/ppbus/pps.c index 897ae1b78bd7..92ed0a059eb6 100644 --- a/sys/dev/ppbus/pps.c +++ b/sys/dev/ppbus/pps.c @@ -61,8 +61,6 @@ static void ppshcpoll(void *arg); #define DEVTOSOFTC(dev) \ ((struct pps_data *)device_get_softc(dev)) -static devclass_t pps_devclass; - static d_open_t ppsopen; static d_close_t ppsclose; static d_ioctl_t ppsioctl; @@ -345,5 +343,6 @@ static driver_t pps_driver = { pps_methods, sizeof(struct pps_data), }; -DRIVER_MODULE(pps, ppbus, pps_driver, pps_devclass, 0, 0); + +DRIVER_MODULE(pps, ppbus, pps_driver, 0, 0); MODULE_DEPEND(pps, ppbus, 1, 1, 1); diff --git a/sys/dev/ppc/ppc.c b/sys/dev/ppc/ppc.c index b452e9007dd4..9d46f81f8d33 100644 --- a/sys/dev/ppc/ppc.c +++ b/sys/dev/ppc/ppc.c @@ -88,7 +88,6 @@ static void ppcintr(void *arg); #define PPC_CONFIG_LOCK(ppc) critical_enter() #define PPC_CONFIG_UNLOCK(ppc) critical_exit() -devclass_t ppc_devclass; const char ppc_driver_name[] = "ppc"; static char *ppc_models[] = { diff --git a/sys/dev/ppc/ppc_acpi.c b/sys/dev/ppc/ppc_acpi.c index bb52b7370d16..a1fdf705f971 100644 --- a/sys/dev/ppc/ppc_acpi.c +++ b/sys/dev/ppc/ppc_acpi.c @@ -112,4 +112,4 @@ ppc_acpi_probe(device_t dev) return (ppc_probe(dev, 0)); } -DRIVER_MODULE(ppc, acpi, ppc_acpi_driver, ppc_devclass, 0, 0); +DRIVER_MODULE(ppc, acpi, ppc_acpi_driver, 0, 0); diff --git a/sys/dev/ppc/ppc_isa.c b/sys/dev/ppc/ppc_isa.c index 869050050225..274af3084a5a 100644 --- a/sys/dev/ppc/ppc_isa.c +++ b/sys/dev/ppc/ppc_isa.c @@ -271,5 +271,5 @@ error: return (error); } -DRIVER_MODULE(ppc, isa, ppc_isa_driver, ppc_devclass, 0, 0); +DRIVER_MODULE(ppc, isa, ppc_isa_driver, 0, 0); ISA_PNP_INFO(lpc_ids); diff --git a/sys/dev/ppc/ppc_pci.c b/sys/dev/ppc/ppc_pci.c index 58a34d0d2700..9ae4f6c07664 100644 --- a/sys/dev/ppc/ppc_pci.c +++ b/sys/dev/ppc/ppc_pci.c @@ -113,4 +113,4 @@ ppc_pci_probe(device_t dev) return (ppc_probe(dev, id->rid)); } -DRIVER_MODULE(ppc, pci, ppc_pci_driver, ppc_devclass, 0, 0); +DRIVER_MODULE(ppc, pci, ppc_pci_driver, 0, 0); diff --git a/sys/dev/ppc/ppc_puc.c b/sys/dev/ppc/ppc_puc.c index 42f77a450fb3..22606786f58b 100644 --- a/sys/dev/ppc/ppc_puc.c +++ b/sys/dev/ppc/ppc_puc.c @@ -94,4 +94,4 @@ ppc_puc_probe(device_t dev) return (ppc_probe(dev, 0)); } -DRIVER_MODULE(ppc, puc, ppc_puc_driver, ppc_devclass, 0, 0); +DRIVER_MODULE(ppc, puc, ppc_puc_driver, 0, 0); diff --git a/sys/dev/ppc/ppcvar.h b/sys/dev/ppc/ppcvar.h index 08d7a6af4f33..6246040397de 100644 --- a/sys/dev/ppc/ppcvar.h +++ b/sys/dev/ppc/ppcvar.h @@ -50,5 +50,4 @@ int ppc_reset_epp(device_t); int ppc_ecp_sync(device_t); int ppc_setmode(device_t, int); -extern devclass_t ppc_devclass; extern const char ppc_driver_name[];