diff --git a/drivers/input/misc/soc_button_array.c b/drivers/input/misc/soc_button_array.c index 5983733d78dd5..c564ea99f47db 100644 --- a/drivers/input/misc/soc_button_array.c +++ b/drivers/input/misc/soc_button_array.c @@ -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; }