From nobody Fri May 6 23:25:00 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 CFEBA1AD0B92; Fri, 6 May 2022 23:25:02 +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 4Kw69T2CpZz3F8k; Fri, 6 May 2022 23:25:01 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1651879501; 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=J2lEasj6uTLowwnArKZFeTb0GBr73RGdPiSozPBQbEM=; b=AJbstgSHmO4IOyK+GCbl2c2D/0qtbuo7UCRD3N5OXHUwi3y+USTQBrnBJ+AJrhUK/GbyCA 5aLGTElcKYW43PP1AiwZLiD5YYZWQpeJldQcleg9CyUD8E9e9WHMvRmuA4ZTQQBxHjGMMl loctfQdOPoffNQUgadgUXLCoWBGeu+TJLJfTJHUfwlDkRc+taytZ5AGvHO7f3jcFe/ZZqJ ABYSQpoH0XAblMpcWp5OdVpkJE6/3eznRdc2wNWbFbSnzcdQ7ExIPTnjXP6valCeu3EYSj OZ9I6zGCoYejlo+Fn8b5/LTjnz/gMcUYNaLw45/XLb582QD3GaBwtPVqCY0Ruw== 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 1A66A250CE; Fri, 6 May 2022 23:25:01 +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 246NP02J075317; Fri, 6 May 2022 23:25:01 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 246NP0Fq075316; Fri, 6 May 2022 23:25:00 GMT (envelope-from git) Date: Fri, 6 May 2022 23:25:00 GMT Message-Id: <202205062325.246NP0Fq075316@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: c90ea831121b - main - Remove unused uart_devclass. 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: c90ea831121be188c1ad43de96c4835f7e6a63d9 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1651879501; 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=J2lEasj6uTLowwnArKZFeTb0GBr73RGdPiSozPBQbEM=; b=eQkbiQ0gF2Or+XvnaWVfJA5oFcRMZFWgvWEkGv1Sb8EKRVo9fUWM9DFTotq2K0lY9Z76wg 80U1drGuLgTkYCWGtspcCi56fkjyHFkfmr99VSu02WnOEVt+fYYxlUwfnXLjjkz410oGxV UBaL1hF3kMQVnNqgm54l+1Wrf4aH6pdx+YoFtG3rSmhBuxdwnOy3nhJtd2krWpE+JOzPXV Ubz4tjLFaMWjN96LGPzevskSJzkavX1kdVyki69KxT/KGh5+bOuI0Sav8WebO7ZfgGpYk/ GM22h6S6atszn4eiWdJ3I+K6f29eAk5JzGvEfJLAMcf/cLNIOVkvww+7OqP5Ew== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1651879501; a=rsa-sha256; cv=none; b=YnlPHVTfP2pTEXTINYPpmisA+L+sq+KyiVqnHJrvxulMYDvw28V903b8ameh2gbywg+mPa FXn22PqoYXjC7sKnXFXBZDdjG2/DgvDNVO+R54t2lmaXUH3mjUF6/1vQvw+9Wv9HkXVoAi RFQceT4sCw1Z47tG6xLfz5886A2V4BBN3QTNXKkCNIY02cUCguaidopa/4uNLHurltohOC PEoqAgQZR8fMQX9JIYLwoTKjbMO7IvacJNMRWUgI50PXyOV/5yvQlKgsCm6uWwDeS6mYPU bepGyxlbBvOPYUyADIivpRn4Uzpje7uzKu89i3Nqyc+X7ys+K/WyExBU0FTOnA== 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=c90ea831121be188c1ad43de96c4835f7e6a63d9 commit c90ea831121be188c1ad43de96c4835f7e6a63d9 Author: John Baldwin AuthorDate: 2022-05-06 22:46:57 +0000 Commit: John Baldwin CommitDate: 2022-05-06 22:46:57 +0000 Remove unused uart_devclass. --- sys/arm/nvidia/tegra_uart.c | 3 +-- sys/dev/uart/uart_bus.h | 1 - sys/dev/uart/uart_bus_acpi.c | 2 +- sys/dev/uart/uart_bus_fdt.c | 4 ++-- sys/dev/uart/uart_bus_isa.c | 2 +- sys/dev/uart/uart_bus_pci.c | 2 +- sys/dev/uart/uart_bus_puc.c | 2 +- sys/dev/uart/uart_bus_scc.c | 2 +- sys/dev/uart/uart_core.c | 1 - sys/dev/uart/uart_dev_snps.c | 2 +- sys/powerpc/powernv/opal_console.c | 2 +- sys/powerpc/pseries/phyp_console.c | 2 +- sys/powerpc/psim/uart_iobus.c | 2 +- 13 files changed, 12 insertions(+), 15 deletions(-) diff --git a/sys/arm/nvidia/tegra_uart.c b/sys/arm/nvidia/tegra_uart.c index 9ba567c6d55f..2c427689952a 100644 --- a/sys/arm/nvidia/tegra_uart.c +++ b/sys/arm/nvidia/tegra_uart.c @@ -248,5 +248,4 @@ static driver_t tegra_uart_driver = { sizeof(struct tegra_softc), }; -DRIVER_MODULE(tegra_uart, simplebus, tegra_uart_driver, uart_devclass, - 0, 0); +DRIVER_MODULE(tegra_uart, simplebus, tegra_uart_driver, 0, 0); diff --git a/sys/dev/uart/uart_bus.h b/sys/dev/uart/uart_bus.h index 5da3cecccf85..1a7e1e0dbb27 100644 --- a/sys/dev/uart/uart_bus.h +++ b/sys/dev/uart/uart_bus.h @@ -137,7 +137,6 @@ struct uart_softc { } sc_u; }; -extern devclass_t uart_devclass; extern const char uart_driver_name[]; int uart_bus_attach(device_t dev); diff --git a/sys/dev/uart/uart_bus_acpi.c b/sys/dev/uart/uart_bus_acpi.c index 4e4c3541aad2..1018412392dd 100644 --- a/sys/dev/uart/uart_bus_acpi.c +++ b/sys/dev/uart/uart_bus_acpi.c @@ -98,4 +98,4 @@ uart_acpi_probe(device_t dev) return (ENXIO); } -DRIVER_MODULE(uart, acpi, uart_acpi_driver, uart_devclass, 0, 0); +DRIVER_MODULE(uart, acpi, uart_acpi_driver, 0, 0); diff --git a/sys/dev/uart/uart_bus_fdt.c b/sys/dev/uart/uart_bus_fdt.c index 985d58c850f0..4a22b4317d3e 100644 --- a/sys/dev/uart/uart_bus_fdt.c +++ b/sys/dev/uart/uart_bus_fdt.c @@ -293,5 +293,5 @@ uart_fdt_probe(device_t dev) return (uart_bus_probe(dev, (int)shift, (int)iowidth, (int)clock, 0, 0, 0)); } -DRIVER_MODULE(uart, simplebus, uart_fdt_driver, uart_devclass, 0, 0); -DRIVER_MODULE(uart, ofwbus, uart_fdt_driver, uart_devclass, 0, 0); +DRIVER_MODULE(uart, simplebus, uart_fdt_driver, 0, 0); +DRIVER_MODULE(uart, ofwbus, uart_fdt_driver, 0, 0); diff --git a/sys/dev/uart/uart_bus_isa.c b/sys/dev/uart/uart_bus_isa.c index cebf90adf13f..9778f85be360 100644 --- a/sys/dev/uart/uart_bus_isa.c +++ b/sys/dev/uart/uart_bus_isa.c @@ -170,5 +170,5 @@ uart_isa_probe(device_t dev) return (uart_bus_probe(dev, 0, 0, 0, 0, 0, 0)); } -DRIVER_MODULE(uart, isa, uart_isa_driver, uart_devclass, 0, 0); +DRIVER_MODULE(uart, isa, uart_isa_driver, 0, 0); ISA_PNP_INFO(isa_ns8250_ids); diff --git a/sys/dev/uart/uart_bus_pci.c b/sys/dev/uart/uart_bus_pci.c index a20be1c577d4..8fa7620d1cd2 100644 --- a/sys/dev/uart/uart_bus_pci.c +++ b/sys/dev/uart/uart_bus_pci.c @@ -347,4 +347,4 @@ uart_pci_detach(device_t dev) return (uart_bus_detach(dev)); } -DRIVER_MODULE(uart, pci, uart_pci_driver, uart_devclass, NULL, NULL); +DRIVER_MODULE(uart, pci, uart_pci_driver, NULL, NULL); diff --git a/sys/dev/uart/uart_bus_puc.c b/sys/dev/uart/uart_bus_puc.c index a1dcdea11dd0..0b9164acb599 100644 --- a/sys/dev/uart/uart_bus_puc.c +++ b/sys/dev/uart/uart_bus_puc.c @@ -86,4 +86,4 @@ uart_puc_probe(device_t dev) return (uart_bus_probe(dev, 0, 0, rclk, 0, 0, 0)); } -DRIVER_MODULE(uart, puc, uart_puc_driver, uart_devclass, 0, 0); +DRIVER_MODULE(uart, puc, uart_puc_driver, 0, 0); diff --git a/sys/dev/uart/uart_bus_scc.c b/sys/dev/uart/uart_bus_scc.c index 3b643524825e..b1423061be37 100644 --- a/sys/dev/uart/uart_bus_scc.c +++ b/sys/dev/uart/uart_bus_scc.c @@ -114,4 +114,4 @@ uart_scc_probe(device_t dev) return (uart_bus_probe(dev, rs, 0, cl, 0, ch, 0)); } -DRIVER_MODULE(uart, scc, uart_scc_driver, uart_devclass, 0, 0); +DRIVER_MODULE(uart, scc, uart_scc_driver, 0, 0); diff --git a/sys/dev/uart/uart_core.c b/sys/dev/uart/uart_core.c index 9cd620308cd5..e63fccd15d13 100644 --- a/sys/dev/uart/uart_core.c +++ b/sys/dev/uart/uart_core.c @@ -54,7 +54,6 @@ __FBSDID("$FreeBSD$"); #include "uart_if.h" -devclass_t uart_devclass; const char uart_driver_name[] = "uart"; SLIST_HEAD(uart_devinfo_list, uart_devinfo) uart_sysdevs = diff --git a/sys/dev/uart/uart_dev_snps.c b/sys/dev/uart/uart_dev_snps.c index 0a1611cd9cef..b29fc48e5422 100644 --- a/sys/dev/uart/uart_dev_snps.c +++ b/sys/dev/uart/uart_dev_snps.c @@ -287,4 +287,4 @@ static driver_t snps_uart_driver = { sizeof(struct snps_softc) }; -DRIVER_MODULE(uart_snps, simplebus, snps_uart_driver, uart_devclass, 0, 0); +DRIVER_MODULE(uart_snps, simplebus, snps_uart_driver, 0, 0); diff --git a/sys/powerpc/powernv/opal_console.c b/sys/powerpc/powernv/opal_console.c index 8f6c88f81f7c..6b7e16891ec7 100644 --- a/sys/powerpc/powernv/opal_console.c +++ b/sys/powerpc/powernv/opal_console.c @@ -112,7 +112,7 @@ static driver_t uart_opal_driver = { sizeof(struct uart_opal_softc), }; -DRIVER_MODULE(uart_opal, opalcons, uart_opal_driver, uart_devclass, 0, 0); +DRIVER_MODULE(uart_opal, opalcons, uart_opal_driver, 0, 0); static int uart_opal_getc(struct uart_opal_softc *sc); static cn_probe_t uart_opal_cnprobe; diff --git a/sys/powerpc/pseries/phyp_console.c b/sys/powerpc/pseries/phyp_console.c index 484952177d51..0b62447e399f 100644 --- a/sys/powerpc/pseries/phyp_console.c +++ b/sys/powerpc/pseries/phyp_console.c @@ -110,7 +110,7 @@ static driver_t uart_phyp_driver = { sizeof(struct uart_phyp_softc), }; -DRIVER_MODULE(uart_phyp, vdevice, uart_phyp_driver, uart_devclass, 0, 0); +DRIVER_MODULE(uart_phyp, vdevice, uart_phyp_driver, 0, 0); static cn_probe_t uart_phyp_cnprobe; static cn_init_t uart_phyp_cninit; diff --git a/sys/powerpc/psim/uart_iobus.c b/sys/powerpc/psim/uart_iobus.c index 9aa0a345d324..5f1f220f7ddd 100644 --- a/sys/powerpc/psim/uart_iobus.c +++ b/sys/powerpc/psim/uart_iobus.c @@ -84,4 +84,4 @@ uart_iobus_probe(device_t dev) return (uart_bus_probe(dev, 0, 0, 0, 0, 0, 0)); } -DRIVER_MODULE(uart, iobus, uart_iobus_driver, uart_devclass, 0, 0); +DRIVER_MODULE(uart, iobus, uart_iobus_driver, 0, 0);