mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 01:50:07 +03:00
gpu: nvgpu: init soc vars from nvgpu_probe
Invoke nvgpu_init_soc_vars from common nvgpu_probe instead of pci specific nvgpu_pci_tegra_probe. Bug 200392719 Change-Id: Ibb0474f2497234ba2e393790020af89a0266f5df Signed-off-by: Thomas Fleury <tfleury@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1674016 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Deepak Bhosale <dbhosale@nvidia.com> Reviewed-by: Konsta Holtta <kholtta@nvidia.com> Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com> 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
bf374b779f
commit
e77ec1a98e
@@ -221,6 +221,11 @@ int nvgpu_probe(struct gk20a *g,
|
|||||||
nvgpu_init_pm_vars(g);
|
nvgpu_init_pm_vars(g);
|
||||||
nvgpu_init_vbios_vars(g);
|
nvgpu_init_vbios_vars(g);
|
||||||
nvgpu_init_ltc_vars(g);
|
nvgpu_init_ltc_vars(g);
|
||||||
|
err = nvgpu_init_soc_vars(g);
|
||||||
|
if (err) {
|
||||||
|
nvgpu_err(g, "init soc vars failed");
|
||||||
|
return err;
|
||||||
|
}
|
||||||
|
|
||||||
/* Initialize the platform interface. */
|
/* Initialize the platform interface. */
|
||||||
err = platform->probe(dev);
|
err = platform->probe(dev);
|
||||||
|
|||||||
@@ -45,7 +45,7 @@
|
|||||||
|
|
||||||
static int nvgpu_pci_tegra_probe(struct device *dev)
|
static int nvgpu_pci_tegra_probe(struct device *dev)
|
||||||
{
|
{
|
||||||
return nvgpu_init_soc_vars(get_gk20a(dev));
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int nvgpu_pci_tegra_remove(struct device *dev)
|
static int nvgpu_pci_tegra_remove(struct device *dev)
|
||||||
|
|||||||
Reference in New Issue
Block a user