mfd: wm8400-core: Make mfd_cell array const
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Tue, 13 May 2014 10:58:45 +0000 (12:58 +0200)
committerLee Jones <lee.jones@linaro.org>
Tue, 3 Jun 2014 07:11:34 +0000 (08:11 +0100)
mfd_add_devices() expects array of struct mfd_cell to be const.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/wm8400-core.c

index e5eae751aa1b1f22e6747fd94bc85ba62174f8d8..c6fb5d16ca09590c04f5e1f032e104d791a92ee7 100644 (file)
@@ -64,7 +64,7 @@ EXPORT_SYMBOL_GPL(wm8400_block_read);
 
 static int wm8400_register_codec(struct wm8400 *wm8400)
 {
-       struct mfd_cell cell = {
+       const struct mfd_cell cell = {
                .name = "wm8400-codec",
                .platform_data = wm8400,
                .pdata_size = sizeof(*wm8400),