summaryrefslogtreecommitdiff
path: root/src/drivers/aspeed/ast2050
diff options
context:
space:
mode:
authorFurquan Shaikh <furquan@google.com>2020-05-13 10:46:17 -0700
committerAaron Durbin <adurbin@chromium.org>2020-05-14 21:25:59 +0000
commit1dac6058723efa8b2a1ea3bfff8443e39e10fdf2 (patch)
tree24b6c96bbc03c1e57a9ed7299b3ffc22038cde91 /src/drivers/aspeed/ast2050
parentfc752b69183e0c2b37fa50f03d89aeb59c876c4f (diff)
downloadcoreboot-1dac6058723efa8b2a1ea3bfff8443e39e10fdf2.tar.xz
aspeed/ast2050: Fix when resources are added
This change moves adding of resources to read_resources() instead of set_resources(). Signed-off-by: Furquan Shaikh <furquan@google.com> Change-Id: I7d5e4aa0fc28dd35f774957ef303d8854aa07913 Reviewed-on: https://review.coreboot.org/c/coreboot/+/41370 Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Aaron Durbin <adurbin@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/drivers/aspeed/ast2050')
-rw-r--r--src/drivers/aspeed/ast2050/ast2050.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/drivers/aspeed/ast2050/ast2050.c b/src/drivers/aspeed/ast2050/ast2050.c
index 5a1d92d6a3..5cb7198c29 100644
--- a/src/drivers/aspeed/ast2050/ast2050.c
+++ b/src/drivers/aspeed/ast2050/ast2050.c
@@ -11,13 +11,13 @@
#include "../common/aspeed_coreboot.h"
#include "../common/ast_drv.h"
-static void aspeed_ast2050_set_resources(struct device *dev)
+static void aspeed_ast2050_read_resources(struct device *dev)
{
/* Reserve VGA regions */
mmio_resource(dev, 3, 0xa0000 >> 10, 0x1ffff >> 10);
- /* Run standard resource set routine */
- pci_dev_set_resources(dev);
+ /* Run standard resource read routine */
+ pci_dev_read_resources(dev);
}
static void aspeed_ast2050_init(struct device *dev)
@@ -52,8 +52,8 @@ static void aspeed_ast2050_init(struct device *dev)
}
static struct device_operations aspeed_ast2050_ops = {
- .read_resources = pci_dev_read_resources,
- .set_resources = aspeed_ast2050_set_resources,
+ .read_resources = aspeed_ast2050_read_resources,
+ .set_resources = pci_dev_set_resources,
.enable_resources = pci_dev_enable_resources,
.init = aspeed_ast2050_init,
};