Commit fc4325a1 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Hans de Goede

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: a507e5d9 ("platform/x86: intel_scu_wdt: Get rid of custom x86 model comparison")
Reported-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20210204150508.62659-1-andriy.shevchenko@linux.intel.comSigned-off-by: default avatarHans de Goede <hdegoede@redhat.com>
parent d8f5c5ea
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment