summaryrefslogtreecommitdiff
path: root/src/soc/amd
diff options
context:
space:
mode:
authorFelix Held <felix.held@amd.corp-partner.google.com>2020-06-17 19:59:53 +0200
committerFelix Held <felix-coreboot@felixheld.de>2020-06-18 20:15:01 +0000
commit71800909f3f560a4da72a4fea1f2fff945f97732 (patch)
tree5cffff36d1e00a0b8c0d641678d2f87241effb8a /src/soc/amd
parent34fb9399de46574b4a6d8a3a822f430061216137 (diff)
soc/amd/picasso/acp: use config_of_soc()
Change-Id: I815b013438d66eef6605dba7cfbd96b9a4aff9b2 Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Reviewed-on: https://review.coreboot.org/c/coreboot/+/42477 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Furquan Shaikh <furquan@google.com> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/soc/amd')
-rw-r--r--src/soc/amd/picasso/acp.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/soc/amd/picasso/acp.c b/src/soc/amd/picasso/acp.c
index 854dd8f52b..29b7521f38 100644
--- a/src/soc/amd/picasso/acp.c
+++ b/src/soc/amd/picasso/acp.c
@@ -16,15 +16,11 @@
static void init(struct device *dev)
{
const struct soc_amd_picasso_config *cfg;
- const struct device *nb_dev = pcidev_path_on_root(GNB_DEVFN);
struct resource *res;
uintptr_t bar;
/* Set the proper I2S_PIN_CONFIG state */
- if (!nb_dev || !nb_dev->chip_info)
- return;
-
- cfg = nb_dev->chip_info;
+ cfg = config_of_soc();
res = dev->resource_list;
if (!res || !res->base) {