Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 053c5267 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Greg Kroah-Hartman
Browse files

UPSTREAM: thermal/drivers/hisi: Remove bogus const from function return type



With gcc-4.1.2:

    drivers/thermal/hisi_thermal.c: In function ‘hisi_thermal_probe’:
    drivers/thermal/hisi_thermal.c:530: warning: type qualifiers ignored on function return type

Remove the "const" keyword to fix this.

Fixes: a160a465297362c5 ("thermal/drivers/hisi: Prepare to add support for other hisi platforms")
Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: default avatarEduardo Valentin <edubezval@gmail.com>
(cherry picked from commit d0ecbbbe518e1b256fcda1770ec06a5a1a058567)
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
Change-Id: I8f0f9592fb5544bd0cbbf02557d491c03737cea0
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent 4b77d497
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -527,7 +527,7 @@ static void hisi_thermal_toggle_sensor(struct hisi_thermal_sensor *sensor,
static int hisi_thermal_probe(struct platform_device *pdev)
{
	struct hisi_thermal_data *data;
	int const (*platform_probe)(struct hisi_thermal_data *);
	int (*platform_probe)(struct hisi_thermal_data *);
	struct device *dev = &pdev->dev;
	int ret;