Skip to content

Commit

Permalink
Merge pull request #47 from kitakar5525/fix/soc-button-array-v4.19
Browse files Browse the repository at this point in the history
v4.19: Input: soc_button_array - fix Wdiscarded-qualifiers for kernels below 4.20
  • Loading branch information
qzed authored May 11, 2020
2 parents dbb02e1 + b32b209 commit 050e7b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/input/misc/soc_button_array.c
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ static int soc_button_probe(struct platform_device *pdev)
return -ENODEV;

if (!device_data || !device_data->button_info)
devm_kfree(dev, button_info);
devm_kfree(dev, (void *)button_info);

return 0;
}
Expand Down

0 comments on commit 050e7b2

Please sign in to comment.