OSDN Git Service

thermal/drivers/samsung: Fix Wvoid-pointer-to-enum-cast warning
[tomoyo/tomoyo-test1.git] / drivers / thermal / samsung / exynos_tmu.c
index 58f4d8f..e5bc2c8 100644 (file)
@@ -887,7 +887,7 @@ static int exynos_map_dt_data(struct platform_device *pdev)
                return -EADDRNOTAVAIL;
        }
 
-       data->soc = (enum soc_type)of_device_get_match_data(&pdev->dev);
+       data->soc = (uintptr_t)of_device_get_match_data(&pdev->dev);
 
        switch (data->soc) {
        case SOC_ARCH_EXYNOS4210: