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>
This commit is contained in:
Felix Held 2020-06-17 19:59:53 +02:00 committed by Felix Held
parent 34fb9399de
commit 71800909f3
1 changed files with 1 additions and 5 deletions

View File

@ -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) {