summaryrefslogtreecommitdiff
path: root/drivers/platform
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2021-02-04 18:05:08 +0300
committerHans de Goede <hdegoede@redhat.com>2021-02-04 19:24:54 +0300
commitfc4325a1a34a8b2dffbd1b664cb41b9bead09f74 (patch)
tree3bcc49858807c2a47294261143ef7921e9f936ae /drivers/platform
parentd8f5c5ea6637270a640c70cd472ee945a60b4106 (diff)
downloadlinux-fc4325a1a34a8b2dffbd1b664cb41b9bead09f74.tar.xz
platform/x86: intel_scu_wdt: Drop mistakenly added const
Neither original structure nor platform_data is declared with const. Drop mistakenly added const when assing platform_data. Fixes: a507e5d90f3d ("platform/x86: intel_scu_wdt: Get rid of custom x86 model comparison") Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Link: https://lore.kernel.org/r/20210204150508.62659-1-andriy.shevchenko@linux.intel.com Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'drivers/platform')
-rw-r--r--drivers/platform/x86/intel_scu_wdt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/intel_scu_wdt.c b/drivers/platform/x86/intel_scu_wdt.c
index 85ee85ca2215..c2479777a1d6 100644
--- a/drivers/platform/x86/intel_scu_wdt.c
+++ b/drivers/platform/x86/intel_scu_wdt.c
@@ -63,7 +63,7 @@ static int __init register_mid_wdt(void)
if (!id)
return -ENODEV;
- wdt_dev.dev.platform_data = (const struct intel_mid_wdt_pdata *)id->driver_data;
+ wdt_dev.dev.platform_data = (struct intel_mid_wdt_pdata *)id->driver_data;
return platform_device_register(&wdt_dev);
}
arch_initcall(register_mid_wdt);