Browse Source

mfd: db8500-prcmu: Make mfd_cell array const

mfd_add_devices() expects array of struct mfd_cell to be const.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Krzysztof Kozlowski 11 năm trước cách đây
mục cha
commit
5785a97e3d
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      drivers/mfd/db8500-prcmu.c

+ 1 - 1
drivers/mfd/db8500-prcmu.c

@@ -3112,7 +3112,7 @@ static int db8500_prcmu_register_ab8500(struct device *parent,
 {
 	struct device_node *np;
 	struct resource ab8500_resource;
-	struct mfd_cell ab8500_cell = {
+	const struct mfd_cell ab8500_cell = {
 		.name = "ab8500-core",
 		.of_compatible = "stericsson,ab8500",
 		.id = AB8500_VERSION_AB8500,