mfd: rtsx_usb: Make mfd_cell array const
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Tue, 13 May 2014 10:58:44 +0000 (12:58 +0200)
committerLee Jones <lee.jones@linaro.org>
Tue, 3 Jun 2014 07:11:39 +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: Roger Tseng <rogerable@realtek.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/rtsx_usb.c

index 141ea52c46e3affedc153b2c00e8640d111fb144..6352bec8419abcc252399520c184cf10866dd86d 100644 (file)
@@ -29,7 +29,7 @@ static int polling_pipe = 1;
 module_param(polling_pipe, int, S_IRUGO | S_IWUSR);
 MODULE_PARM_DESC(polling_pipe, "polling pipe (0: ctl, 1: bulk)");
 
-static struct mfd_cell rtsx_usb_cells[] = {
+static const struct mfd_cell rtsx_usb_cells[] = {
        [RTSX_USB_SD_CARD] = {
                .name = "rtsx_usb_sdmmc",
                .pdata_size = 0,