mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 01:50:07 +03:00
gpu: nvgpu: De-linuxify pmgr code
The pmgr code is in theory common code. However there were uses of Linux stuff within this code. This patch cleans that up by deleting the unnecessary os_linux.h includes, usage of kfree() and adds several platform fields to the gk20a struct. The platform data is copied to the gk20a struct in the platform initialization code so that this common code can access said data without requiring any knowledge of the OS platform data. JIRA NVGPU-525 Change-Id: Ic4bb6021f60b0a0778779ab5f3e15b7e5ca98306 Signed-off-by: Alex Waterman <alexw@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1673825 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
d8e2311291
commit
182760476d
@@ -581,6 +581,11 @@ static int nvgpu_pci_probe(struct pci_dev *pdev,
|
||||
g->pci_class = (pdev->class >> 8) & 0xFFFFU; // we only want base/sub
|
||||
g->pci_revision = pdev->revision;
|
||||
|
||||
g->ina3221_dcb_index = platform->ina3221_dcb_index;
|
||||
g->ina3221_i2c_address = platform->ina3221_i2c_address;
|
||||
g->ina3221_i2c_port = platform->ina3221_i2c_port;
|
||||
g->hardcode_sw_threshold = platform->hardcode_sw_threshold;
|
||||
|
||||
#if defined(CONFIG_PCI_MSI)
|
||||
err = pci_enable_msi(pdev);
|
||||
if (err) {
|
||||
|
||||
Reference in New Issue
Block a user