aboutsummaryrefslogtreecommitdiff
path: root/src/soc/amd/picasso/acp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/amd/picasso/acp.c')
-rw-r--r--src/soc/amd/picasso/acp.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/soc/amd/picasso/acp.c b/src/soc/amd/picasso/acp.c
index cbe5d860b0..854dd8f52b 100644
--- a/src/soc/amd/picasso/acp.c
+++ b/src/soc/amd/picasso/acp.c
@@ -13,15 +13,13 @@
#include <amdblocks/acpimmio.h>
#include <commonlib/helpers.h>
-static void enable(struct device *dev)
+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;
- pci_dev_enable_resources(dev);
-
/* Set the proper I2S_PIN_CONFIG state */
if (!nb_dev || !nb_dev->chip_info)
return;
@@ -44,7 +42,8 @@ static void enable(struct device *dev)
static struct device_operations acp_ops = {
.read_resources = pci_dev_read_resources,
.set_resources = pci_dev_set_resources,
- .enable_resources = enable,
+ .enable_resources = pci_dev_enable_resources,
+ .init = init,
.ops_pci = &pci_dev_ops_pci,
};