summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanilo Krummrich <dakr@redhat.com>2024-01-11 19:38:43 +0100
committerDanilo Krummrich <dakr@redhat.com>2024-01-11 19:53:45 +0100
commitbd2d9d2ece8b1d5db0447cf4987fdcd5ed8dd817 (patch)
tree0812350392857b5a60125caf09ee15245c23cfa8
parente33b8a8425ea32888cf9b992a269d8b2d5ea21b4 (diff)
nova: drv: remove unused code and fix indent
Signed-off-by: Danilo Krummrich <dakr@redhat.com>
-rw-r--r--drivers/gpu/drm/nova/nova_drv.rs11
1 files changed, 3 insertions, 8 deletions
diff --git a/drivers/gpu/drm/nova/nova_drv.rs b/drivers/gpu/drm/nova/nova_drv.rs
index ed1bb94fdf25..3fd5431a3f8c 100644
--- a/drivers/gpu/drm/nova/nova_drv.rs
+++ b/drivers/gpu/drm/nova/nova_drv.rs
@@ -1,6 +1,5 @@
//! Nova GPU Driver
-
mod gpu;
mod bios;
mod fwsec;
@@ -62,14 +61,10 @@ impl pci::Driver for NovaDevice {
_ => return Err(ENODEV)
};
- let mut gpu = Gpu::new(card_type, bar);
+ let mut gpu = Gpu::new(card_type, bar);
+ let _ = gpu.init(dev)?;
- let _ = gpu.init(dev)?;
-// match self.booter_load_fw.request(c_str!("nvidia/ad102/gsp/booter_load-535.113.01.bin"), dev) {
-// Err(e) => return Err(e),
-// Ok(()) => pr_info!("loaded fw: {} ", self.booter_load_fw.size())
- // }
- Ok(())
+ Ok(())
}
fn remove(_data: &Self::Data) {