summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Serbinenko <phcoder@gmail.com>2016-01-11 18:43:25 +0100
committerVladimir Serbinenko <phcoder@gmail.com>2016-01-11 20:51:12 +0100
commit6b2d83c3526157582fb28776cca2bed0bedfe4e9 (patch)
tree9a76240bdee21cc90347f4e93db522afbf84993f
parent229d427c12f99173c75a11699b4fa619254f4594 (diff)
downloadcoreboot-6b2d83c3526157582fb28776cca2bed0bedfe4e9.tar.xz
autoport: Add missing casts
Change-Id: I04abdd48f5e2440756f9b03041d46c773f200368 Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com> Reviewed-on: https://review.coreboot.org/12890 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@chromium.org>
-rw-r--r--util/autoport/bd82x6x.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/util/autoport/bd82x6x.go b/util/autoport/bd82x6x.go
index a1513e8b0d..c1a9c5ff46 100644
--- a/util/autoport/bd82x6x.go
+++ b/util/autoport/bd82x6x.go
@@ -397,12 +397,12 @@ void acpi_create_gnvs(global_nvs_t *gnvs)
func init() {
/* BD82X6X LPC */
for id := 0x1c40; id <= 0x1c5f; id++ {
- RegisterPCI(0x8086, id, bd82x6x{variant: "BD82X6X"})
+ RegisterPCI(0x8086, uint16(id), bd82x6x{variant: "BD82X6X"})
}
/* C216 LPC */
for id := 0x1e41; id <= 0x1e5f; id++ {
- RegisterPCI(0x8086, id, bd82x6x{variant: "C216"})
+ RegisterPCI(0x8086, uint16(id), bd82x6x{variant: "C216"})
}
/* PCIe bridge */