diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2017-11-19 12:04:27 +0100 |
---|---|---|
committer | Eduardo Valentin <edubezval@gmail.com> | 2018-01-02 10:44:58 -0800 |
commit | d0ecbbbe518e1b256fcda1770ec06a5a1a058567 (patch) | |
tree | 3c96df2ffdfd3f859fa3b0c915309b2da1d7b366 /drivers/thermal | |
parent | f80ee03fe72deb702c83a353b41d0fac12ed7ded (diff) | |
download | blackbird-op-linux-d0ecbbbe518e1b256fcda1770ec06a5a1a058567.tar.gz blackbird-op-linux-d0ecbbbe518e1b256fcda1770ec06a5a1a058567.zip |
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: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Diffstat (limited to 'drivers/thermal')
-rw-r--r-- | drivers/thermal/hisi_thermal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/thermal/hisi_thermal.c b/drivers/thermal/hisi_thermal.c index 2d855a96cdd9..761d0559c268 100644 --- a/drivers/thermal/hisi_thermal.c +++ b/drivers/thermal/hisi_thermal.c @@ -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; |