diff options
author | Sanket Goswami <Sanket.Goswami@amd.com> | 2021-11-30 16:53:17 +0530 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2021-12-21 18:47:57 +0100 |
commit | 6a5a14b18972ae03861e2ed15152f731de29baaa (patch) | |
tree | 4637b6f10b7a491103bd58f2d65a89b7914cd52e /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 400cffd5f4eaf34939530b3a044e31655188b1f9 (diff) |
platform/x86: amd-pmc: Simplify error handling and store the pci_dev in amd_pmc_dev structure
Handle error-exits in the amd_pmc_probe() to avoid duplication and store
the root port information in amd_pmc_probe() so that the information
can be used across multiple routines.
Suggested-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sanket Goswami <Sanket.Goswami@amd.com>
Link: https://lore.kernel.org/r/20211130112318.92850-2-Sanket.Goswami@amd.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions