platform/x86: intel_scu_wdt: Drop mistakenly added const
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 4 Feb 2021 15:05:08 +0000 (17:05 +0200)
committerHans de Goede <hdegoede@redhat.com>
Thu, 4 Feb 2021 16:24:54 +0000 (17:24 +0100)
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>
drivers/platform/x86/intel_scu_wdt.c

index 85ee85c..c247977 100644 (file)
@@ -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);