summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/platform/x86/amd-pmc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/platform/x86/amd-pmc.c b/drivers/platform/x86/amd-pmc.c
index 425a86108f75..fc0b4d628dec 100644
--- a/drivers/platform/x86/amd-pmc.c
+++ b/drivers/platform/x86/amd-pmc.c
@@ -708,8 +708,9 @@ static const struct pci_device_id pmc_pci_ids[] = {
static int amd_pmc_s2d_init(struct amd_pmc_dev *dev)
{
- u32 size, phys_addr_low, phys_addr_hi;
+ u32 phys_addr_low, phys_addr_hi;
u64 stb_phys_addr;
+ u32 size = 0;
/* Spill to DRAM feature uses separate SMU message port */
dev->msg_port = 1;