mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
gpu: nvgpu: changed log level for defer_probe
If platform probe fails as a result of DEFER_PROBE, it should be reported as dev_info instead of dev_err. Bug 1926777 Change-Id: Iba4392abdd6089da9678695b8ee7f2c92bea1505 Signed-off-by: Debarshi Dutta <ddutta@nvidia.com> Reviewed-on: http://git-master/r/1492711 (cherry picked from commit 896dc2b1b979107f968ba91582210216ab8800b7 in dev-kernel) Reviewed-on: https://git-master.nvidia.com/r/1550437 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Bibek Basu <bbasu@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
aa4daddda2
commit
d73cc6808d
@@ -132,6 +132,9 @@ int nvgpu_probe(struct gk20a *g,
|
||||
/* Initialize the platform interface. */
|
||||
err = platform->probe(g->dev);
|
||||
if (err) {
|
||||
if (err == -EPROBE_DEFER)
|
||||
dev_info(g->dev, "platform probe failed");
|
||||
else
|
||||
dev_err(g->dev, "platform probe failed");
|
||||
return err;
|
||||
}
|
||||
|
||||
@@ -657,6 +657,9 @@ int vgpu_probe(struct platform_device *pdev)
|
||||
/* Initialize the platform interface. */
|
||||
err = platform->probe(dev);
|
||||
if (err) {
|
||||
if (err == -EPROBE_DEFER)
|
||||
dev_info(dev, "platform probe failed");
|
||||
else
|
||||
dev_err(dev, "platform probe failed");
|
||||
return err;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user