Skip to content

Commit

Permalink
thermal/drivers/hisi: Remove bogus const from function return type
Browse files Browse the repository at this point in the history
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: a160a46 ("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>
  • Loading branch information
Geert Uytterhoeven authored and Eduardo Valentin committed Jan 2, 2018
1 parent f80ee03 commit d0ecbbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/thermal/hisi_thermal.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit d0ecbbb

Please sign in to comment.