tty/hvc_opal: constify of_device_id array
authorFabian Frederick <fabf@skynet.be>
Mon, 16 Mar 2015 19:17:10 +0000 (20:17 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 26 Mar 2015 21:49:10 +0000 (22:49 +0100)
of_device_id is always used as const.
(See driver.of_match_table and open firmware functions)

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/hvc/hvc_opal.c

index 071551bf3e9a559ae6ac1177f482ade55067eb42..543b234e70fc33bf728f6b30b66e0ef3048e4e1d 100644 (file)
@@ -41,7 +41,7 @@
 
 static const char hvc_opal_name[] = "hvc_opal";
 
-static struct of_device_id hvc_opal_match[] = {
+static const struct of_device_id hvc_opal_match[] = {
        { .name = "serial", .compatible = "ibm,opal-console-raw" },
        { .name = "serial", .compatible = "ibm,opal-console-hvsi" },
        { },