Input: xilinx_ps2 - make Open Firmware device ids constant
authorMárton Németh <nm127@freemail.hu>
Sun, 10 Jan 2010 07:23:02 +0000 (23:23 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 10 Jan 2010 07:28:41 +0000 (23:28 -0800)
The match_table field of the struct of_device_id is constant
in <linux/of_platform.h> so it makes sense to mark xps2_of_match
also constant.

Signed-off-by: Márton Németh <nm127@freemail.hu>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/serio/xilinx_ps2.c

index ebb22f88c8426bdd3cebff9e2f822d0b7412ade7..78c64fb8a4b0d21050892cdd26ec7cab27760827 100644 (file)
@@ -354,7 +354,7 @@ static int __devexit xps2_of_remove(struct of_device *of_dev)
 }
 
 /* Match table for of_platform binding */
-static struct of_device_id xps2_of_match[] __devinitdata = {
+static const struct of_device_id xps2_of_match[] __devinitconst = {
        { .compatible = "xlnx,xps-ps2-1.00.a", },
        { /* end of list */ },
 };