]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
thermal/drivers/hisi: Remove bogus const from function return type
authorGeert Uytterhoeven <geert@linux-m68k.org>
Sun, 19 Nov 2017 11:04:27 +0000 (12:04 +0100)
committerThadeu Lima de Souza Cascardo <cascardo@canonical.com>
Thu, 12 Apr 2018 13:04:21 +0000 (10:04 -0300)
BugLink: http://bugs.launchpad.net/bugs/1763366
[ Upstream commit d0ecbbbe518e1b256fcda1770ec06a5a1a058567 ]

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: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
drivers/thermal/hisi_thermal.c

index 2d855a96cdd9886c5f3abbcfb4e1d8a5c1ea8666..761d0559c268b6068770a44ac91e490637a038fc 100644 (file)
@@ -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;