exynos_tmu.c (f6a756e8fb12923f0e3996a575e935e94f3594eb) | exynos_tmu.c (1892f9f01cd0cf163d2a2ee182d60d61e9d95be0) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * exynos_tmu.c - Samsung Exynos TMU (Thermal Management Unit) 4 * 5 * Copyright (C) 2014 Samsung Electronics 6 * Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> 7 * Lukasz Majewski <l.majewski@samsung.com> 8 * --- 873 unchanged lines hidden (view full) --- 882 } 883 884 data->base = devm_ioremap(&pdev->dev, res.start, resource_size(&res)); 885 if (!data->base) { 886 dev_err(&pdev->dev, "Failed to ioremap memory\n"); 887 return -EADDRNOTAVAIL; 888 } 889 | 1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * exynos_tmu.c - Samsung Exynos TMU (Thermal Management Unit) 4 * 5 * Copyright (C) 2014 Samsung Electronics 6 * Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com> 7 * Lukasz Majewski <l.majewski@samsung.com> 8 * --- 873 unchanged lines hidden (view full) --- 882 } 883 884 data->base = devm_ioremap(&pdev->dev, res.start, resource_size(&res)); 885 if (!data->base) { 886 dev_err(&pdev->dev, "Failed to ioremap memory\n"); 887 return -EADDRNOTAVAIL; 888 } 889 |
890 data->soc = (enum soc_type)of_device_get_match_data(&pdev->dev); | 890 data->soc = (uintptr_t)of_device_get_match_data(&pdev->dev); |
891 892 switch (data->soc) { 893 case SOC_ARCH_EXYNOS4210: 894 data->tmu_set_trip_temp = exynos4210_tmu_set_trip_temp; 895 data->tmu_set_trip_hyst = exynos4210_tmu_set_trip_hyst; 896 data->tmu_initialize = exynos4210_tmu_initialize; 897 data->tmu_control = exynos4210_tmu_control; 898 data->tmu_read = exynos4210_tmu_read; --- 286 unchanged lines hidden --- | 891 892 switch (data->soc) { 893 case SOC_ARCH_EXYNOS4210: 894 data->tmu_set_trip_temp = exynos4210_tmu_set_trip_temp; 895 data->tmu_set_trip_hyst = exynos4210_tmu_set_trip_hyst; 896 data->tmu_initialize = exynos4210_tmu_initialize; 897 data->tmu_control = exynos4210_tmu_control; 898 data->tmu_read = exynos4210_tmu_read; --- 286 unchanged lines hidden --- |