]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
gpu: nova-core: Replace module_pci_driver! with explicit module init
authorTimur Tabi <ttabi@nvidia.com>
Thu, 19 Mar 2026 21:26:56 +0000 (16:26 -0500)
committerDanilo Krummrich <dakr@kernel.org>
Wed, 25 Mar 2026 00:24:26 +0000 (01:24 +0100)
commitea0c83806f790de0b3441ddebbbcfd82196d6cce
tree520c3188f171aa2844bb6ab83f28224422f1a799
parent01681851393642e10b5cc3f35eb6a1916ee4aff1
gpu: nova-core: Replace module_pci_driver! with explicit module init

Replace the module_pci_driver! macro with an explicit module
initialization using the standard module! macro and InPlaceModule
trait implementation.  No functional change intended, with the
exception that the driver now prints a message when loaded.

This change is necessary so that we can create a top-level "nova_core"
debugfs entry when the driver is loaded.

Signed-off-by: Timur Tabi <ttabi@nvidia.com>
Reviewed-by: Gary Guo <gary@garyguo.net>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Tested-by: John Hubbard <jhubbard@nvidia.com>
Tested-by: Eliot Courtney <ecourtney@nvidia.com>
Link: https://patch.msgid.link/20260319212658.2541610-5-ttabi@nvidia.com
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
drivers/gpu/nova-core/nova_core.rs