Skip to content

Commit

Permalink
Input: xilinx_ps2 - make Open Firmware device ids constant
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Márton Németh authored and Dmitry Torokhov committed Jan 10, 2010
1 parent ce7b39a commit ef9a16f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/input/serio/xilinx_ps2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */ },
};
Expand Down

0 comments on commit ef9a16f

Please sign in to comment.