]> Git Repo - linux.git/commitdiff
platform/x86: intel_scu_wdt: Drop mistakenly added const
authorAndy Shevchenko <[email protected]>
Thu, 4 Feb 2021 15:05:08 +0000 (17:05 +0200)
committerAndy Shevchenko <[email protected]>
Fri, 5 Feb 2021 10:54:27 +0000 (12:54 +0200)
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 <[email protected]>
Signed-off-by: Andy Shevchenko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Hans de Goede <[email protected]>
drivers/platform/x86/intel_scu_wdt.c

index 85ee85ca2215ac7f6a6b035b85a33b5705759e76..c2479777a1d6050422f8e5ef5a9803b661a0b32d 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);
This page took 0.055176 seconds and 4 git commands to generate.