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 105cfffe82c6..28b2a12bb26d 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 |
@@ -473,9 +473,9 @@ static struct resource tco_res[] = { | |||
473 | }, | 473 | }, |
474 | }; | 474 | }; |
475 | 475 | ||
476 | static struct lpc_ich_info tco_info = { | 476 | static struct itco_wdt_platform_data tco_info = { |
477 | .name = "Apollo Lake SoC", | 477 | .name = "Apollo Lake SoC", |
478 | .iTCO_version = 3, | 478 | .version = 3, |
479 | }; | 479 | }; |
480 | 480 | ||
481 | static int ipc_create_punit_device(void) | 481 | static int ipc_create_punit_device(void) |
@@ -552,8 +552,7 @@ static int ipc_create_tco_device(void) | |||
552 | goto err; | 552 | goto err; |
553 | } | 553 | } |
554 | 554 | ||
555 | ret = platform_device_add_data(pdev, &tco_info, | 555 | ret = platform_device_add_data(pdev, &tco_info, sizeof(tco_info)); |
556 | sizeof(struct lpc_ich_info)); | ||
557 | if (ret) { | 556 | if (ret) { |
558 | dev_err(ipcdev.dev, "Failed to add tco platform data\n"); | 557 | dev_err(ipcdev.dev, "Failed to add tco platform data\n"); |
559 | goto err; | 558 | goto err; |