diff options
Diffstat (limited to 'drivers/platform/x86/intel_pmc_ipc.c')
-rw-r--r-- | drivers/platform/x86/intel_pmc_ipc.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/platform/x86/intel_pmc_ipc.c b/drivers/platform/x86/intel_pmc_ipc.c index d734763dab69..fbd1cc7d5de3 100644 --- a/drivers/platform/x86/intel_pmc_ipc.c +++ b/drivers/platform/x86/intel_pmc_ipc.c | |||
@@ -33,7 +33,7 @@ | |||
33 | #include <linux/suspend.h> | 33 | #include <linux/suspend.h> |
34 | #include <linux/acpi.h> | 34 | #include <linux/acpi.h> |
35 | #include <asm/intel_pmc_ipc.h> | 35 | #include <asm/intel_pmc_ipc.h> |
36 | #include <linux/mfd/lpc_ich.h> | 36 | #include <linux/platform_data/itco_wdt.h> |
37 | 37 | ||
38 | /* | 38 | /* |
39 | * IPC registers | 39 | * IPC registers |
@@ -460,9 +460,9 @@ static struct resource tco_res[] = { | |||
460 | }, | 460 | }, |
461 | }; | 461 | }; |
462 | 462 | ||
463 | static struct lpc_ich_info tco_info = { | 463 | static struct itco_wdt_platform_data tco_info = { |
464 | .name = "Apollo Lake SoC", | 464 | .name = "Apollo Lake SoC", |
465 | .iTCO_version = 3, | 465 | .version = 3, |
466 | }; | 466 | }; |
467 | 467 | ||
468 | static int ipc_create_punit_device(void) | 468 | static int ipc_create_punit_device(void) |
@@ -539,8 +539,7 @@ static int ipc_create_tco_device(void) | |||
539 | goto err; | 539 | goto err; |
540 | } | 540 | } |
541 | 541 | ||
542 | ret = platform_device_add_data(pdev, &tco_info, | 542 | ret = platform_device_add_data(pdev, &tco_info, sizeof(tco_info)); |
543 | sizeof(struct lpc_ich_info)); | ||
544 | if (ret) { | 543 | if (ret) { |
545 | dev_err(ipcdev.dev, "Failed to add tco platform data\n"); | 544 | dev_err(ipcdev.dev, "Failed to add tco platform data\n"); |
546 | goto err; | 545 | goto err; |