From: Krzysztof Kozlowski Date: Tue, 13 May 2014 10:58:39 +0000 (+0200) Subject: mfd: max14577: Make of_device_id array const X-Git-Tag: firefly_0821_release~176^2~3820^2~6^2~29 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=8f7f62705efbcffa933897af267210cc216c1302;p=firefly-linux-kernel-4.4.55.git mfd: max14577: Make of_device_id array const Array of struct of_device_id should be const as expected by both of_match_table field and of_match_device() call. Signed-off-by: Krzysztof Kozlowski Signed-off-by: Lee Jones --- diff --git a/drivers/mfd/max14577.c b/drivers/mfd/max14577.c index caaf50c1bd60..6c81590f8464 100644 --- a/drivers/mfd/max14577.c +++ b/drivers/mfd/max14577.c @@ -57,7 +57,7 @@ static struct mfd_cell max77836_devs[] = { }, }; -static struct of_device_id max14577_dt_match[] = { +static const struct of_device_id max14577_dt_match[] = { { .compatible = "maxim,max14577", .data = (void *)MAXIM_DEVICE_TYPE_MAX14577,