ahci: ahci_p5wdh_workaround - constify DMI table
authorMathias Krause <minipli@googlemail.com>
Sun, 31 Aug 2014 08:57:09 +0000 (10:57 +0200)
committerTejun Heo <tj@kernel.org>
Sun, 31 Aug 2014 09:36:46 +0000 (05:36 -0400)
The DMI table does not need to be written to, make it r/o.

Signed-off-by: Mathias Krause <minipli@googlemail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/ahci.c

index a29f8012fb08483cfb67e47b9d104db1e7db4954..c880699a7d0bb73a3c635b2e7c12d2c58b81bef4 100644 (file)
@@ -780,7 +780,7 @@ static void ahci_pci_print_info(struct ata_host *host)
  */
 static void ahci_p5wdh_workaround(struct ata_host *host)
 {
-       static struct dmi_system_id sysids[] = {
+       static const struct dmi_system_id sysids[] = {
                {
                        .ident = "P5W DH Deluxe",
                        .matches = {
This page took 0.026874 seconds and 5 git commands to generate.