From nobody Mon May 9 19:23:30 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 EB8531AC4879; Mon, 9 May 2022 19:23:32 +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 4KxrgR2dCyz3pbT; Mon, 9 May 2022 19:23:31 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652124211; 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=K1BJThJa9JPdTpUCA+zFMkZ50Ms7GhZ0f2AcpHUKw60=; b=krcHeal6EW53zVJFGfKS5nQA0ERXMDnzmuAAWntFgVEhvipZyr++o9n2SdbkiECsIexqNt dA+m/xv/6KMtDsXii4YB5CqcmYq1ZO+REmxuyAIq2wDbhjnDvAjknmosjkBXvRdXU/XE4M jLRTT212uzncWg507lKAKvrPoUEKvjCoezaKzHhGms76bEf7BdsTlK43f0rYROgmJf/mGP dzuleo5m1VkTPnDDcbQGYDShndByWGTOTS61Pb1qcdZ9OYRveeDkoUHewYRl6C+jNPgLTd 8ugFx1AA0wJGnPhWGEb4iMBblbH0fJmwlrpt+6MU8TvO9nIIn671sBV3HpU51w== 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 E849416BBE; Mon, 9 May 2022 19:23:30 +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 249JNUJL086275; Mon, 9 May 2022 19:23:30 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 249JNUrE086274; Mon, 9 May 2022 19:23:30 GMT (envelope-from git) Date: Mon, 9 May 2022 19:23:30 GMT Message-Id: <202205091923.249JNUrE086274@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: 0d95fe04c65c - main - spi flash: 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: 0d95fe04c65c371dab9ed7039440b40720e79559 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1652124211; 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=K1BJThJa9JPdTpUCA+zFMkZ50Ms7GhZ0f2AcpHUKw60=; b=o+ukmRc0VdtY5Z0gebZxhc9Ba3Prdu0l8vD0Sfbiwttqg9oHhf4O+cpw7dbCqLmgA925rn jSRvSsi0/Q5raxTVNZQmoRBLt0Wcy/yI0rXCtNuwLC/Hk5ack+xo8hlv7cTgiuV6498itz 5jaz1sat3DoGTm+UT2H+ZaW7DI5kBt6HeO7IszxdY36BExmWWcPG5KZE/0lWIpE8EskFsJ kU+RkPMuHWPz1VkzKIM/uEHTASbrNEtDDsiLe3ELQSe3WgAgPFRlUbFKxoTkSHq/P3SpnH ya5ZlttzOFIHnSmchoMc58f673b6Y3RM7WjC2GiSJwEnFefTTOodx7flZGNnNQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1652124211; a=rsa-sha256; cv=none; b=jjmwkT1puJ2NezSBruTqHn3nuJJk4wo17RUvC8qUvy4i5ZIcVNKnBfkcfsrsWJRTv5oPfs 5fIb/q2oJEnEtoF0UQ91g/2lqDHyVfXAjFblZ9Qsf7wwGOdHJ4B9x/1prnDU8S/Drf//M2 +G4OHSzY5dWeIMJolAEK3L3T4NcWAh/OMkNPUPB+V9pZYXX1LVINdW10N8qSKY5psei8Ii hAt35lg/SuLL/1AF6qeUgTjf+4Kj5NdFUFMWO2qr0KcacB5yU82vGMPkoBBWgQ/hRIzKcu fYiPNFEchroOLyAqEgKWxLY2ktnUQgBUzFt7CzC54/BkkybSwc/mumg+gxMAqw== 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=0d95fe04c65c371dab9ed7039440b40720e79559 commit 0d95fe04c65c371dab9ed7039440b40720e79559 Author: John Baldwin AuthorDate: 2022-05-09 19:22:04 +0000 Commit: John Baldwin CommitDate: 2022-05-09 19:22:04 +0000 spi flash: Remove unused devclass arguments to DRIVER_MODULE. --- sys/dev/flash/at45d.c | 4 +--- sys/dev/flash/cqspi.c | 4 +--- sys/dev/flash/flexspi/flex_spi.c | 3 +-- sys/dev/flash/mx25l.c | 4 +--- sys/dev/flash/n25q.c | 4 +--- 5 files changed, 5 insertions(+), 14 deletions(-) diff --git a/sys/dev/flash/at45d.c b/sys/dev/flash/at45d.c index 2c7402dbbe82..f9495b9a56e8 100644 --- a/sys/dev/flash/at45d.c +++ b/sys/dev/flash/at45d.c @@ -584,8 +584,6 @@ at45d_task(void *arg) } } -static devclass_t at45d_devclass; - static device_method_t at45d_methods[] = { /* Device interface */ DEVMETHOD(device_probe, at45d_probe), @@ -601,7 +599,7 @@ static driver_t at45d_driver = { sizeof(struct at45d_softc), }; -DRIVER_MODULE(at45d, spibus, at45d_driver, at45d_devclass, NULL, NULL); +DRIVER_MODULE(at45d, spibus, at45d_driver, NULL, NULL); MODULE_DEPEND(at45d, spibus, 1, 1, 1); #ifdef FDT MODULE_DEPEND(at45d, fdt_slicer, 1, 1, 1); diff --git a/sys/dev/flash/cqspi.c b/sys/dev/flash/cqspi.c index b1b1f4cbc7ad..819877944241 100644 --- a/sys/dev/flash/cqspi.c +++ b/sys/dev/flash/cqspi.c @@ -759,9 +759,7 @@ static device_method_t cqspi_methods[] = { { 0, 0 } }; -static devclass_t cqspi_devclass; - DEFINE_CLASS_1(cqspi, cqspi_driver, cqspi_methods, sizeof(struct cqspi_softc), simplebus_driver); -DRIVER_MODULE(cqspi, simplebus, cqspi_driver, cqspi_devclass, 0, 0); +DRIVER_MODULE(cqspi, simplebus, cqspi_driver, 0, 0); diff --git a/sys/dev/flash/flexspi/flex_spi.c b/sys/dev/flash/flexspi/flex_spi.c index 0637d7f846c6..271431bb92e0 100644 --- a/sys/dev/flash/flexspi/flex_spi.c +++ b/sys/dev/flash/flexspi/flex_spi.c @@ -972,7 +972,6 @@ flex_spi_task(void *arg) } } -static devclass_t flex_spi_devclass; static device_method_t flex_spi_methods[] = { /* Device interface */ DEVMETHOD(device_probe, flex_spi_probe), @@ -988,5 +987,5 @@ static driver_t flex_spi_driver = { sizeof(struct flex_spi_softc), }; -DRIVER_MODULE(flex_spi, simplebus, flex_spi_driver, flex_spi_devclass, 0, 0); +DRIVER_MODULE(flex_spi, simplebus, flex_spi_driver, 0, 0); SIMPLEBUS_PNP_INFO(flex_spi_compat_data); diff --git a/sys/dev/flash/mx25l.c b/sys/dev/flash/mx25l.c index dfe670f73aee..b57e9c9f8f77 100644 --- a/sys/dev/flash/mx25l.c +++ b/sys/dev/flash/mx25l.c @@ -668,8 +668,6 @@ mx25l_task(void *arg) } } -static devclass_t mx25l_devclass; - static device_method_t mx25l_methods[] = { /* Device interface */ DEVMETHOD(device_probe, mx25l_probe), @@ -685,7 +683,7 @@ static driver_t mx25l_driver = { sizeof(struct mx25l_softc), }; -DRIVER_MODULE(mx25l, spibus, mx25l_driver, mx25l_devclass, 0, 0); +DRIVER_MODULE(mx25l, spibus, mx25l_driver, 0, 0); MODULE_DEPEND(mx25l, spibus, 1, 1, 1); #ifdef FDT MODULE_DEPEND(mx25l, fdt_slicer, 1, 1, 1); diff --git a/sys/dev/flash/n25q.c b/sys/dev/flash/n25q.c index b64d3fa57474..6a577e107cb5 100644 --- a/sys/dev/flash/n25q.c +++ b/sys/dev/flash/n25q.c @@ -465,8 +465,6 @@ n25q_task(void *arg) } } -static devclass_t n25q_devclass; - static device_method_t n25q_methods[] = { /* Device interface */ DEVMETHOD(device_probe, n25q_probe), @@ -482,4 +480,4 @@ static driver_t n25q_driver = { sizeof(struct n25q_softc), }; -DRIVER_MODULE(n25q, simplebus, n25q_driver, n25q_devclass, 0, 0); +DRIVER_MODULE(n25q, simplebus, n25q_driver, 0, 0);