mtd: mxc-nand: Constify platform_device_id
authorKrzysztof Kozlowski <k.kozlowski.k@gmail.com>
Fri, 1 May 2015 15:50:01 +0000 (00:50 +0900)
committerBrian Norris <computersforpeace@gmail.com>
Thu, 7 May 2015 07:13:23 +0000 (00:13 -0700)
The platform_device_id is not modified by the driver and core uses it as
const.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski.k@gmail.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/nand/mxc_nand.c

index 372e0e38f59b323f4388c6d96416ea5ea35f3c69..2c46489eeee0b0d264970f11a0c1e59a8e8cfbd6 100644 (file)
@@ -1350,7 +1350,7 @@ static inline int is_imx53_nfc(struct mxc_nand_host *host)
        return host->devtype_data == &imx53_nand_devtype_data;
 }
 
-static struct platform_device_id mxcnd_devtype[] = {
+static const struct platform_device_id mxcnd_devtype[] = {
        {
                .name = "imx21-nand",
                .driver_data = (kernel_ulong_t) &imx21_nand_devtype_data,